[转]Intellij IDEA部分实用快捷键
如下,其中星号是我认为应该熟记的(可能部分是Scala插件专用):
Find:
Ctrl-F: Find
Ctrl-R: Replace
* Ctrl-Shift-F: Find in path
* Ctrl-Shift-R: Replace in path
Alt-F7: Find usage
* Ctrl-Alt-F7: Show usage
* Shift-Shift: Search anywhere
Edit:
Ctrl-D: Duplciate line
Ctrl-W: Expand selection
Ctrl-Shift-W: Shrink selection
Ctrl-Shift-J: Join lines
Ctrl-Shift-U: Toggle case
* Ctrl-/: Toggle comment
* Ctrl-Shift-空格: 上下文相关的补全(target typing等)
* Ctrl-Alt-Enter: 完成当前语句
* Tab: 选择当前完成项
View:
Ctrl-Shift-I: Quick definition
* Ctrl-Q: Quick document
* Ctrl-P: 显示调用函数的参数
Alt-=: 显示标识符的类型
Navigate:
* Ctrl-N: 定位到指定名字的Class
* Ctrl-Shift-N: 定位到指定名字的File
* Ctrl-Shift-Alt-N: 定位到指定名字的Symbol
* Ctrl-Alt-←: 上一个位置
* Ctrl-Alt-→: 下一个位置
* Alt-↑: 靠上方的一个方法
* Alt-↓: 靠下方的一个方法
* Ctrl-B: 跳转到声明
Ctrl-Alt-B: 跳转到定义
* Ctrl-F12: 文件类/方法结构
* Ctrl-Alt-F12: 文件路径
Ctrl-Shift-P: 查看表达式可能的隐式转换
* F2: 下一处错误
Shift-F2: 上一处错误
* Shift ESC: 关闭最后活动窗口
Analyze:
* Inspect Code: 静态分析,指出潜在问题并建议
* Generate Coverage Report: 导出覆盖报表,能够通过红色标记出没有覆盖到的行
Refactor:
* Shift-F6: Rename
Rename File: 包括选项"Search for references"、"Search in comments and strings"
Ctrl-F6: Change signature
* Alt-Delete: Safe delete
Run:
* Shift-F9: 调试项目
* Shift-F10: 运行项目
* Ctrl-Shift-F10: 运行选中项
Debug:
* F8: Step over
* F7: Step into
* F9: 继续执行
* Shift-F8: Step out
Alt-F8: 求值表达式
* Ctrl-Alt-F8: 快捷求值表达式
* Ctrl-F8: Toggle line breakpoint

浙公网安备 33010602011771号