我的IDEA版本是2016.3.6,设置的Keymap的类型为Eclipse
这里把较为实用的快捷键记录下来,以备后用。
Editor Actions
- Add Rectangular Selection on Mouse Drag |
Ctrl + Alt + Shift + Button1 Click
(备注:需要先按住 Ctrl + Alt + Shift 后按下鼠标左键,切记不可提前让光标活动于选中区域。) - Delete to Line End |
Ctrl + Shift + Delete
- Down with Selection |
Shift + Down
- Complete Current Statement |
Ctrl + Shift + Enter
- Create Rectangular Selection |
Alt + Shift + Button2 Click
- Delete to Word End |
Ctrl + Delete
- Duplicate Entire Lines |
Ctrl + Alt + Down
- Join Lines |
Ctrl + Shift + J
- Left with Selection |
Shift + Left
- Move Caret to Line End |
End
- Move Caret to Line End with Selection |
Shift + End
- Move Caret to Line Start |
Home
- Move Caret to Line Start with Selection |
Shift + Home
- Move Caret to Matching Brace |
Ctrl + Shift + P
- Move Caret to Page Bottom with Selection |
Ctrl + Shift + Page Down
- Move Caret to Page Top with Selection |
Ctrl + Shift + Page Up
- Move Caret to Next Word |
Ctrl + Right
- Move Caret to Next Word with Selection |
Ctrl + Shift + Right
- Page Down with Selection |
Shift + Page Down
- Page Up with Selection |
Shift + Page Up
- Move Caret to Previous Word |
Ctrl + Left
- Move Caret to Previous Word with Selection |
Ctrl + Shift + Left
- Right with Selection |
Shift + Right
- Scroll Down |
Ctrl + Down
- Scroll to Center |
Ctrl + M
- Scroll Up |
Ctrl + Up
- Start New Line |
Shift + Enter
- Start New Line Before Current |
Ctrl + Alt + Enter
- Move Caret to Text End |
Ctrl + End
- Move Caret to Text End with Selection |
Ctrl + Shift + End
- Move Caret to Text Start |
Ctrl + Home
- Move Caret to Text Start with Selection |
Ctrl + Shift + Home
- Toggle Case |
Ctrl + Shift + U
Ctrl + Shift + X
Ctrl + Shift + Y
- Column Selection Mode |
Ctrl + Shift + Insert
- Shrink Selection |
Alt + Shift + Down
- Unindent Line or Selection |
Shift + Tab
- Up with Selection |
Shift + Up
Main Menue
Edit
- Undo |
Ctrl + Z
- Redo |
Ctrl + Y
- Cut |
Ctrl + X
Shift + Delete
- Copy |
Ctrl + C
Ctrl + Insert
- Copy Paths |
Ctrl + Shift + C
- Paste |
Ctrl + V
Shift + Insert
- Paste from History |
Ctrl + Shift + V
Shift + Shift + Insert
Find
- Replace |
Ctrl + F
- Find Next / Move to Next Occurrence |
Ctrl + K
- Find Previous / Move to Previous Occurrence |
Ctrl + Shift + K
- Find Word at Caret |
Ctrl + F12
- Select All Occurrences |
Ctrl + Alt + Y
- Add Selection for Next Occurrence |
Alt + Y
- Unselect Occurrence |
Alt + Shift + Y
- Find in Path |
Ctrl + H
- Find Usages |
Ctrl + G
Other
- Browse Console History |
Ctrl + Alt + E
- Class Name Completion |
Ctrl + Alt + Space
- Open In New Editor Window |
Shift + Enter
- Zoom In |
NumPad + Equals
- Zoom Out |
NumPad - Minus
为了统一起见,同时也是为了文档支持因素的考虑,建议使用default模式的快捷键
IDEA的快捷输入
- 快速输入 public static void main( String[] args ) { } 只需输入 psvm 后回车即可。
- 快速输入 System.out.println() 只需输入sout后按Tab键即可。(注:必须在main函数内才使用有效)
- 快速输入 for 循环 只需输入 fori 然后按下Tab键即可
查看方法注释,点击进入源码即可,若想和eclipse一样鼠标停留即可出现注释提示,开启方法为:
Preferences->Editor->General->Other->Show quick documentation on mouse move 钩上