IntelliJ IDEA是java编程语言开发的集成环境,目前有很多用户喜欢使用IDEA进行相关开发,IDEA使用起来十分方便,本篇博客主要是介绍IDEA快捷键(Keymap)的设置和使用。
IntelliJ IDEA快捷键(keymap)设置
设置快捷键的快捷方式
设置快捷为 Eclipse 的快捷键(按个人喜好选择)
通过快捷键功能修改快捷键设置(可忽略)
通过指定快捷键,查看或修改其功能(可忽略)
Eclipse方式常用快捷键
| 1 | 执行(run) | alt+r |
| 2 | 单行注释 | ctrl + / |
| 3 | 复制代码 | ctrl + c |
| 4 | 多行注释 | ctrl + shift + / |
| 5 | 提示补全 (Class Name Completion) | alt+/ |
| 6 | 撤销 | ctrl + z |
| 7 | 反撤销 | ctrl + y |
| 8 | 剪切 | ctrl + x |
| 9 | 粘贴 | ctrl + v |
| 10 | 保存 | ctrl + s |
| 11 | 全选 | ctrl + a |
| 12 | 查找/替换(当前) | ctrl+f |
| 13 | 查找(全局) | ctrl+h |
| 14 | 执行(run) | alt+r |
| 15 | 查找文件 | 双击Shift |
| 16 | 向下复制一行 (Duplicate Lines) | ctrl+alt+down |
| 17 | 删除一行或选中行 (delete line) | ctrl+d |
| 18 | 向下移动行(move statement down) | alt+down |
| 19 | 向上移动行(move statement up) | alt+up |
| 20 | 向下开始新的一行(start new line) | shift+enter |
| 21 | 向上开始新的一行 (Start New Line before current) | ctrl+shift+enter |
| 22 | 查看源码(class) | ctrl + 选中指定的结构 或 ctrl + shift + t |
| 23 | 退回到前一个编辑的页面 (back) | alt + left |
| 24 | 进入到下 一个编辑的页面( 针对于上条) (forward) | alt + right |
| 25 | 万能解错/生成返回值变量 | alt + ente |
| 26 | 查看继承关系(type hierarchy) | F4 |
| 27 | 格式化代码(reformat code) | ctrl+shift+F |
| 28 | 提示方法参数类型(Parameter Info) | ctrl+alt+/ |
| 29 | 选中数行,整体往后移动 | tab |
| 30 | 选中数行,整体往前移动 | shift + tab |
| 31 | 查看类的结构:类似于 eclipse 的 的 outline | ctrl+o |
| 29 | 重构:修改变量名与方法名(rename) | alt+shift+r |
| 32 | 大写转小写/ 小写转大写(toggle case) | ctrl+shift+y |
| 33 | 生成构造器/get/set/toString | alt +shift + s |
| 34 | 查看文档说明(quick documentation) | F2 |
| 35 | 收起所有的方法(collapse all) | alt + shift + c |
| 36 | 打开所有方法(expand all) | alt+shift+x |
| 37 | 打开代码所在硬盘文件夹(show in explorer) | ctrl+shift+x |
| 38 | 生成 try-catch 等(surround with) | alt+shift+z |
| 39 | 局部变量抽取为成员变量(introduce field) | alt+shift+f |
| 40 | 查看类的继承结构图(Show UML Diagram) | ctrl + shift + u |
| 41 | 查看方法的多层重写结构(method hierarchy) | ctrl+alt+h |
| 42 | 添加到收藏(add to favorites) | ctrl+alt+f |
| 43 | 抽取方法(Extract Method) | alt+shift+m |
| 44 | 打开最近修改的文件(Recently Files) | ctrl+E |
| 45 | 关闭当前打开的代码栏(close) | ctrl + w |
| 46 | 关闭打开的所有代码栏(close all) | ctrl + shift + w |
| 47 | 快速搜索类中的错误(next highlighted error) | ctrl + shift + q |
| 48 | 选择要粘贴的内容(Show in Explorer) | ctrl+shift+v |
| 49 | 查找方法在哪里被调用(Call Hierarchy) | ctrl+shift+h |
本博客与博客园༺ཌ༈君☠纤༈ད༻同步发布
梦想是一场华美的旅途,每个人在找到它之前,都只是孤独的少年。
来源:CSDN
作者:༺ཌ༈Asio君༈ད༻
链接:https://blog.csdn.net/weixin_43439972/article/details/104071970