IntelliJ IDEA is a powerful integrated development environment (IDE) for Java and various other programming languages. Here’s a cheat sheet with some common shortcuts and features in IntelliJ IDEA:
General Shortcuts
- Show/Hide Project Tool Window:
- Mac:
Cmd + 1
- Windows/Linux:
Alt + 1
- Mac:
- Show/Hide Navigation Bar:
- Mac:
Cmd + Up Arrow
- Windows/Linux:
Alt + Home
- Mac:
- Open Project Structure:
- Mac:
Cmd + ;
- Windows/Linux:
Ctrl + Alt + Shift + S
- Mac:
- Find Action:
- Mac:
Cmd + Shift + A
- Windows/Linux:
Ctrl + Shift + A
- Mac:
Editing Shortcuts
- Duplicate Line or Selection:
- Mac:
Cmd + D
- Windows/Linux:
Ctrl + D
- Mac:
- Delete Line:
- Mac:
Cmd + Backspace
- Windows/Linux:
Ctrl + Y
- Mac:
- Comment/Uncomment:
- Mac:
Cmd + /
- Windows/Linux:
Ctrl + /
- Mac:
- Refactor This:
- Mac:
Ctrl + T
- Windows/Linux:
Ctrl + Alt + Shift + T
- Mac:
Navigation Shortcuts
- Go to Class:
- Mac:
Cmd + O
- Windows/Linux:
Ctrl + N
- Mac:
- Go to File:
- Mac:
Cmd + Shift + O
- Windows/Linux:
Ctrl + Shift + N
- Mac:
- Go to Symbol:
- Mac:
Cmd + Opt + O
- Windows/Linux:
Ctrl + Alt + Shift + N
- Mac:
- Go to Declaration:
- Mac:
Cmd + B
- Windows/Linux:
Ctrl + B
- Mac:
- Navigate Back/Forward:
- Mac:
Cmd + [
- Windows/Linux:
Ctrl + Alt + Left/Right
- Mac:
Run/Debug Shortcuts
- Run Application:
- Mac:
Shift + F10
- Windows/Linux:
Ctrl + Shift + F10
- Mac:
- Debug Application:
- Mac:
Shift + F9
- Windows/Linux:
Ctrl + Shift + F9
- Mac:
- Stop Process:
- Mac:
Cmd + F2
- Windows/Linux:
Ctrl + F2
- Mac:
Version Control Shortcuts
- Open Version Control Tool Window:
- Mac:
Cmd + 9
- Windows/Linux:
Alt + 9
- Mac:
- Commit Changes:
- Mac:
Cmd + K
- Windows/Linux:
Ctrl + K
- Mac:
- Update Project:
- Mac:
Cmd + T
- Windows/Linux:
Ctrl + T
- Mac:
Search and Replace
- Find:
- Mac:
Cmd + F
- Windows/Linux:
Ctrl + F
- Mac:
- Replace:
- Mac:
Cmd + R
- Windows/Linux:
Ctrl + R
- Mac:
- Find in Path:
- Mac:
Cmd + Shift + F
- Windows/Linux:
Ctrl + Shift + F
- Mac:
Code Generation
- Generate Code:
- Mac:
Cmd + N
- Windows/Linux:
Alt + Insert
- Mac:
- Override Methods:
- Mac:
Cmd + O
- Windows/Linux:
Ctrl + O
- Mac:
- Implement Methods:
- Mac:
Cmd + I
- Windows/Linux:
Ctrl + I
- Mac:
Other Useful Shortcuts
- Reformat Code:
- Mac:
Cmd + Opt + L
- Windows/Linux:
Ctrl + Alt + L
- Mac:
- Optimize Imports:
- Mac:
Ctrl + Opt + O
- Windows/Linux:
Ctrl + Alt + O
- Mac:
- Show Intention Actions:
- Mac:
Opt + Enter
- Windows/Linux:
Alt + Enter
- Mac:
- Quick Documentation Lookup:
- Mac:
F1
- Windows/Linux:
Ctrl + Q
- Mac:
Remember that these shortcuts can vary based on your keymap settings and the specific context within IntelliJ IDEA. Check the keymap preferences for your preferred shortcuts. You can find more information and customize shortcuts in the IntelliJ IDEA documentation.