写在前面,参考依据:http://www.jetbrains.com/idea/documentation/index.jsp
Ctrl+Space
Basic code completion (the name of any class, method or variable)
基本代码辅助
与输入法冲突,不考虑
Ctrl + Shift + Space
Smart code completion (filters the list of methods and variables by expected type)
在很多时候都能够给出Smart提示
同上,不考虑
Ctrl + Shift + Enter
Complete statement
完成状态,尚未发现有什么卵用
Ctrl + P
Parameter info (within method call arguments)
在方法中查看参数信息
Ctrl + Q
Quick documentation lookup
快速查看文档
Shift + F1
External Doc
在浏览器中打开API文档
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)
生成常用代码(Getters, Setters, Constructors, hashCode/equals, toString)
Ctrl + O
Override methods
重载方法
Ctrl + I
Implement methods
实现方法
Ctrl + Alt + T
Surround with…(if..else, try..catch, for, synchronized, etc.)
使用(if..else, try..catch, for, synchronized, etc.)包围代码
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
减少当前选择到上一状态
这个我也不懂
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 clipboard
复制
这个就不上图了,自己脑补下
Ctrl + V or Shift + Insert
Paste from clipboard
粘贴
这个就不上图了,自己脑补下
Ctrl + Shift + V
Paste from recent buffers…
从最近缓冲区粘贴
Ctrl + D
Duplicate current line or selected block
复制当前行或者选中代码块
Ctrl + Y
Delete line at caret
删除光标所在行
Ctrl + Shift+J
Smart line join
智能合并行
Ctrl + Enter
Start new line
新起一行(光标位置不动)
Ctrl + Shift + U
Toggle case for word at caret or selected block
不懂这是什么东西
Ctrl + Shift + ] / [
Select till code block end/start
Ctrl + Delete
Delete to word end
删除到单词的结尾
Ctrl + Backspace
Delete to word start
删除到单词的开始
Ctrl + NumPad+/-
Expand/collapse code block
展开/折起代码块
Ctrl +Shift + NumPad+/-
Expand all/Collapse all
展开全部
Ctrl + F4
Close active editor tab
关闭当前编辑窗口