标签:imp 自动提示 nta idea last ace method 位置 with
| 动作 | 快捷键 | 说明 |
|---|---|---|
| Class… | Ctrl+N | 查找类文件 |
| File… | Ctrl+Shift+N | 查找文件 |
| Line… | Ctrl+G | 定位到文件某一行 |
| Back | Alt+向左箭头 | 返回至上次光标位置 |
| Forward | Alt+向右箭头 | 返回至后一次光标位置 |
| Last Edit Location | Ctrl+Shift+Backspace | 返回上次编辑位置 |
| Next Edit Location | Ctrl+Shift+反斜杠 | 返回后一次编辑位置 |
| Declaration | Ctrl+B | 定位至变量定义的位置 |
| Implementation(s) | Ctrl+Alt+B | 定位至选中类或方法的具体实现 |
| Type Declaration | Ctrl+Shift+B | 直接定位至光标所在变量的类型定义 |
| Super Method | Ctrl+U | 直接定位至当前方法override或者implements的方法定义处 |
| File Structure | Ctrl+F12 | 显示当前文件的文件结构 |
| File Path | Ctrl+Alt+F12 | 显示当前文件的路径,并可以方便的将相关父路径打开 |
| Type Hierarchy | Ctrl+H | 显示当前类的继承层次 |
| Method Hierarchy | Ctrl+Shift+H | 显示当前方法的继承层次 |
| Call Hierarchy | Ctrl+Alt+H | 显示当前方法的调用层次 |
| Next Highlighted Error | F2 | 定位至下一个错误处 |
| Previous Highlighted Error | Shift+F2 | 定位至前一个错误处 |
| Previous Occurrence | Ctrl+Alt+向上箭头 | 查找前一个变量共现的地方 |
| Next Occurrence | Ctrl+Alt+向下箭头 | 查找下一个变量共现的地方 |
————————————————-Code———————————————–
| 动作 | 快捷键 | 说明 |
|---|---|---|
| Override Methods… | Ctrl+O | 重写基类的方法 |
| Implement Methods… | Ctrl+I | 实现基类或接口中的方法 |
| Generate… | Alt+Insert | 产生构造方法、getter/setter等方法 |
| Surround With… | Ctrl+Alt+T | 将选中的代码使用if、while、try/catch等包装 |
| Unwrap/Remove… | Ctrl+Shift+Delete | 去除相关的包装代码 |
| system.out.print | sout+tab | 自动补全system.out.println |
—————————————–Completion——————————————
| 动作 | 快捷键 | 说明 |
|---|---|---|
| Basic | Alt+/ | 自动完成 |
| SmartType | Alt+Enter | 自动提示完成 |
—————————————-Folding————————————————-
| 动作 | 快捷键 | 说明 |
|---|---|---|
| Expand | Ctrl+= | 展开代码 |
| Collapse | Ctrl+- | 收缩代码 |
| Expand Recursively | Ctrl+Alt+= | 递归展开代码 |
| Collapse Recursively | Ctrl+Alt+- | 递归收缩代码 |
| Expand All | Ctrl+Shift+= | 展开所有代码 |
| Collapse All | Ctrl+Shift+- | 收缩所有代码 |
———————————
| 动作 | 快捷键 | 说明 |
|---|---|---|
| Insert Live Template | Ctrl+J | 插入Live Template |
| Surround with Live Template | Ctrl+Alt+J | 使用Live Template包装 |
| Comment with Line Comment | Ctrl+/ | 使用//进行注释 |
| Comment with Block Comment | Ctrl+Shift+/ | 使用/**/进行注释 |
| Reformat Code | Ctrl+Alt+L | 格式化代码 |
| Auto-Indent Lines | Ctrl+Alt+I | 自动缩进行 |
| Optimize Imports | Ctrl+Alt+O | 优化import |
———————————
| 动作 | 快捷键 | 说明 |
|---|---|---|
| Move Statement Down | Ctrl+Shift+向下箭头 | 将光标所在的代码块向下整体移动 |
| Move Statement Up | Ctrl+Shift+向上箭头 | 将光标所在的代码块向上移动 |
| Move Element Left | Ctrl+Alt+Shift+向左箭头 | 将元素向左移动 |
| Move Element Right | Ctrl+Alt+Shift+向右箭头 | 将元素向右移动 |
| Move Line Down | Alt+Shift+向下箭头 | 将行向下移动 |
| Move Line Up | Alt+Shift+向上箭头 | 将行向上移动 |
————————————-Refactor——————————————–
| 动作 | 快捷键 | 说明 |
|---|---|---|
| Rename | Shift+F6 | 重命名 |
| Change Signature | Ctrl+F6 | 更改函数签名 |
| Type Migration | Ctrl+Shift+F6 | 更改类型 |
| 动作 | 快捷键 | 说明 |
|---|---|---|
| Class… | Ctrl+N | 查找类文件 |
| File… | Ctrl+Shift+N | 查找文件 |
| Line… | Ctrl+G | 定位到文件某一行 |
| Back | Alt+向左箭头 | 返回至上次光标位置 |
| Forward | Alt+向右箭头 | 返回至后一次光标位置 |
| Last Edit Location | Ctrl+Shift+Backspace | 返回上次编辑位置 |
| Next Edit Location | Ctrl+Shift+反斜杠 | 返回后一次编辑位置 |
| Declaration | Ctrl+B | 定位至变量定义的位置 |
| Implementation(s) | Ctrl+Alt+B | 定位至选中类或方法的具体实现 |
| Type Declaration | Ctrl+Shift+B | 直接定位至光标所在变量的类型定义 |
| Super Method | Ctrl+U | 直接定位至当前方法override或者implements的方法定义处 |
| File Structure | Ctrl+F12 | 显示当前文件的文件结构 |
| File Path | Ctrl+Alt+F12 | 显示当前文件的路径,并可以方便的将相关父路径打开 |
| Type Hierarchy | Ctrl+H | 显示当前类的继承层次 |
| Method Hierarchy | Ctrl+Shift+H | 显示当前方法的继承层次 |
| Call Hierarchy | Ctrl+Alt+H | 显示当前方法的调用层次 |
| Next Highlighted Error | F2 | 定位至下一个错误处 |
| Previous Highlighted Error | Shift+F2 | 定位至前一个错误处 |
| Previous Occurrence | Ctrl+Alt+向上箭头 | 查找前一个变量共现的地方 |
| Next Occurrence | Ctrl+Alt+向下箭头 | 查找下一个变量共现的地方 |
标签:imp 自动提示 nta idea last ace method 位置 with
原文地址:https://www.cnblogs.com/it-dennis/p/8946147.html