My personal IntelliJ CheatSheet. I am collecting just the shortcuts I use the most. All keyboard shortcuts are currently for Windows.
Disclaimer: This is based on personal experience and should not be taken as an official advice.
Intent | Shortcut |
---|---|
Move line up | Shift-Alt-Up |
Move line down | Shift-Alt-Down |
Delete line | Ctrl-y |
Duplicate line | Ctrl-d |
Reformat code | Ctrl-Alt-l |
Optimize imports | Ctrl-Alt-o |
Start new Line | Shift-Enter |
Show clipboard entries | Ctrl-Shift-V |
Generate code | Alt-Ins |
Comment lines | Ctrl-/ |
Intent | Shortcut |
---|---|
Show suggestions | Ctrl-Space |
Intent | Shortcut |
---|---|
Back | Ctrl-Alt-Left |
Forward | Ctrl-Alt-Right |
Go to line | Ctrl-g |
Search in file | Ctrl-f |
Find in path | Ctrl-Shift-f |
Search everywhere | Double Shift |
Search and Replace in file | Ctrl-r |
Go to declaration | Ctrl-b or Ctrl-Click |
Find next | F3 |
Find previous | Shift-F3 |
Intent | Shortcut |
---|---|
Rename | Shift-F6 |
Extract local variable | Ctlr-Alt-v |
Extract field | Ctrl-Alt-f |
Extract constant | Ctrl-Alt-c |
Type these in the editor as text shortcuts.
Intent | Shortcut |
---|---|
System.out.println(); |
sout |
public static void main(String[] args){} |
psvm or main |
Intent | Shortcut |
---|---|
Open Terminal | Alt-f12 |
Switch Tab | Ctrl-Tab |
Intent | Shortcut |
---|---|
Step into | F7 |
Step over | F8 |
Resume | F9 |