Jump to Section
- Editing
- Search/Replace
- Usage Search
- Compile and Run
- Debugging
- Navigation
- Refactoring
- Live Templates
- General
- Reference
Editing
Ctrl + Space
替换为:Ctrl + ;
- Basic code completion (the name of any class, method or variable)
- 自动补全代码,可用于类、方法、变量
Ctrl + Shift + Space
替换为:Ctrl + Shift + ;
- Smart code completion (filters the list of methods and variables by expected type)
- 自动补全代码,或者列举出相应方法和变量集合
Ctrl + Shift + Enter
- Complete statement
- 补全当前行,如:在行末尾加;完成代码;if/else代码中加上{}完成代码块
Ctrl + P
- Parameter info (within method call arguments)
- 显示方法的参数
Ctrl + Q
替换为:Alt + Q
- Quick documentation lookup
- 显示注释文档
Shift + F1
- External Doc
- 在浏览器中打开光标所在的类或者方法文档
Ctrl + mouse over code
- Brief Info
- 显示类、方法、变量概要信息
Ctrl + F1
- Show descriptions of error or warning at caret
- 显示错误或者警告信息
Alt + Insert
- Generate code… (Getters, Setters, Constructors, hashCode/equals, toString)
- 生成代码,如:getter/setter/构造方法/…
Ctrl + O
- Override methods
- 弹出窗口选择要Override/Implement的方法
Ctrl + I
- Implement methods
- 弹出窗口选择要Implement的方法
Ctrl + Alt + T
- Surround with… (if..else, try..catch, for, synchronized, etc.)
- 选择代码块,添加到if/try/for/…代码块中去
Ctrl + /
- Comment/uncomment with line comment
- 注释/取消注释代码行://…
Ctrl + Shift + /
- Comment/uncomment with block comment
- 注释/取消注释代码块:/…/
Ctrl + W
- Select successively increasing code blocks
- 选择连续增加的代码块(连续操作)
Ctrl + Shift + W
- Decrease current selection to previous state
- Ctrl + W的相反操作,减少选择的代码块(连续操作)
Alt + Q
替换为:Ctrl + Alt + Q
- Context info
- 显示上下文信息,如方法/类声明,光标和声明处必须不在同一屏幕处,否则不会提示
Alt + Enter
- Show intention actions and quick-fixes
- 显示意图采取行动和快速修复错误,可以自动导入包
Ctrl + Alt + L
- Reformat code
- 格式化代码
Ctrl + Alt + O
- Optimize imports
- 优化导入的类和包
Ctrl + Alt + I
- Auto-indent line(s)
- 自动缩进行
Tab / Shift + Tab
- Indent/unindent selected lines
- 缩进/取消缩进行
Ctrl + X or Shift + Delete
- Cut current line or selected block to clipboard
- 删除当前行或者选择的代码块,并复制到剪切板
Ctrl + C or Ctrl + Insert
- Copy current line or selected block to clip