先看表格标题说明,快捷键在下面!!
表格标题说明:
1、快捷键参考:这里的快捷键有的是idea默认的,有的是我自己自定义的,空着的就是我没有设置快捷键的
2、说明:对快捷的作用做简单说明
3、对应设置中的英文描述:见下图说明
看了说明还是不知道快捷键作用的,可以设置好以后在idea上试一试,试过就知道了
快捷键参考 | 说明 | 对应设置中的英文描述 |
---|---|---|
ctrl+D | 删除行 | Delete line |
ctrl+shift+Y | 大小写切换 | toggle case |
ctrl+shift+S | 打开设置 | settings |
ctrl+shift+alt+S | 打开项目结构 | project structure |
ctrl+shift+C | 选中文件,复制文件路径 | copy path |
ctrl+shift+V | 从历史复制中粘贴 | paste from history |
ctrl+alt+R | 替换 | replace |
ctrl+shift+I | 快速查看定义 | quick definition |
ctrl+alt+/ | 显示参数信息 | parameter info |
alt+insert | alt+ctrl+insert | 新建文件 | new... |
ctrl+shift+u | 查看类图 | show uml diagram |
ctrl+alt+shift+T | 显示所有重构列表,比如重命名 | refactor this... |
ctrl+shift+右箭头 | 向右移动分割线,即控制project、favorite等视图的大小 | stretch to right |
ctrl+shift+左箭头 | 向左移动分割线,即控制project、favorite等视图的大小 | stretch to left |
快捷键参考 | 说明 | 对应设置中的英文描述 |
---|---|---|
ctrl+F | 全文查找 | find |
ctrl+K | 查找下一个(配合查找使用) | find next / move to next occurrence |
ctrl+shift+K | 查找上一个(配合查找使用) | find previous / move to previous occurrence |
ctrl+alt+Y | 全文查找所有并高亮显示,先选中要查找内容 | select all occurrences |
ctrl+H | 全项目搜索关键字 | find in path |
ctrl+alt+F7 | 显示使用,常用来查找某个类在哪使用过 | show usages |
快捷键参考 | 说明 | 对应设置中的英文描述 |
---|---|---|
ctrl+shift+T | 定位类,跟eclopse里的一样,键入冒号(:)和行号,跳到指定行 | class |
ctrl+shift+R | 定位文件,跟eclopse里的一样,键入冒号(:)和行号,跳到指定行 | file |
alt+向左箭头 | 返回 | back |
alt+向右箭头 | 前进 | forward |
F3 | ctrl+鼠标左键 | 声明 | declaration |
ctrl+T | 查看实现类或实现方法 | implementation |
F4 | 类层次结构 | type hierarchy |
ctrl+F3 | ctrl+O | 查看文件结构 | file structure |
ctrl+alt+F12 | 显示文件路径 | file path |
ctrl+shift+向下箭头 | 下一个方法 | next method |
ctrl+shift+向上箭头 | 上一个方法 | previous method |
ctrl+shift+F11 | 书签 | toggle bookmark |
ctrl+alt+shift+F11 | 用标记替换书签,比如数字,字母 | toggle bookmark with mnemonic |
shift+F11 | 显示书签 | show bookmark |
ctrl+E | 显示最近使用的文件 | recent files |
快捷键参考 | 说明 | 对应设置中的英文描述 |
---|---|---|
alt+W | 重写方法或实现方法 | override methods |
alt+shift+P | 实现方法 | implement methods |
alt+shift+S | 自动生成get、set、toString等方法 | generate |
alt+shift+Z | 添加外部环绕代码,比如你还要在外面在套一层try catch | surround with |
上面能添加外部环绕代码,肯定也能移除,这个快捷键就是干这个的 | unwrap/remove | |
ctrl+alt+shift+J | 显示所有有效的模板缩写 | insert live template |
ctrl+shift+空格 | 显示模板内容或文档信息 | quick documentation |
ctrl+/ | 单行注释 | comment with line comment |
ctrl+shift+/ | 多行注释 | comment with block comment |
ctrl+shift+F | 代码格式化 | reformat code |
alt+向下箭头 | 将当前行移动到下一行 | move line down |
alt+向上箭头 | 将当前行移动到上一行 | move line up |
alt+/ | 代码提示快捷键,我设置的跟eclipse里一样的 | class name completion |
ctrl+alt+V | 自动生成返回值类型 | variable... |
ctrl+shift+enter | 自动补全括号,分号 | completion current statement |
快捷键参考 | 说明 | 对应设置中的英文描述 |
---|---|---|
alt+M | 提交 | commit |
更新 | update project | |
ctrl+alt+A | 添加到版本控制 | add to vcs |
ctrl+D | 比较差异 | compare files |
alt+H | 显示提交历史 | show history |
从版本库检出 | checkout from version control | |
对应工具栏快捷键
这个快捷键后面可能不定时更新
整理不易,点个赞吧~