Keyboard Commands for IntelliJ IDEA
These are the basics you should already know:
Mac:
cmd + c (copy)
cmd + v (paste)
cmd + z (undo)
cmd + x (cut)
cmd + s (save)
Windows:
cntrl + c (copy)
cntrl + v (paste)
cntrl + z (undo)
cntrl + x (cut)
cntrl + s (save)
For macOS:
- General Navigation:
- Search Everywhere:
Shift twice
- Go to Class:
Cmd + O
- Go to File:
Cmd + Shift + O
- Navigate Back:
Cmd + Alt + Left Arrow
- Navigate Forward:
Cmd + Alt + Right Arrow
- Code Editing:
- Basic Code Completion:
Ctrl + Space
- Smart Code Completion:
Ctrl + Shift + Space
- Reformat Code:
Cmd + Option + L
- Comment/Uncomment Line:
Cmd + /
- Duplicate Line:
Cmd + D
- Delete Line:
Cmd + Delete
- Move Line Up/Down:
Alt + Shift + Up/Down Arrow
- Running and Debugging:
- Run:
Ctrl + R
- Debug:
Ctrl + D
- Step Over:
F8
- Step Into:
F7
- Step Out:
Shift + F8
- Toggle Breakpoint:
Cmd + F8
- Refactoring:
- Refactor This:
Ctrl + T
- Rename:
Shift + F6
- Extract Variable:
Cmd + Option + V
- Extract Method:
Cmd + Option + M
- Extract Field:
Cmd + Option + F
- Inline:
Cmd + Option + N
For Windows:
- General Navigation:
- Search Everywhere:
Shift twice
- Go to Class:
Ctrl + N
- Go to File:
Ctrl + Shift + N
- Navigate Back:
Ctrl + Alt + Left Arrow
- Navigate Forward:
Ctrl + Alt + Right Arrow
- Code Editing:
- Basic Code Completion:
Ctrl + Space
- Smart Code Completion:
Ctrl + Shift + Space
- Reformat Code:
Ctrl + Alt + L
- Comment/Uncomment Line:
Ctrl + /
- Duplicate Line:
Ctrl + D
- Delete Line:
Ctrl + Y
- Move Line Up/Down:
Alt + Shift + Up/Down Arrow
- Running and Debugging:
- Run:
Shift + F10
- Debug:
Shift + F9
- Step Over:
F8
- Step Into:
F7
- Step Out:
Shift + F8
- Toggle Breakpoint:
Ctrl + F8
- Refactoring:
- Refactor This:
Ctrl + Alt + Shift + T
- Rename:
Shift + F6
- Extract Variable:
Ctrl + Alt + V
- Extract Method:
Ctrl + Alt + M
- Extract Field:
Ctrl + Alt + F
- Inline:
Ctrl + Alt + N