Skip to content

IntelliJ IDEA Keyboard Shortcuts Cheat Sheet

IntelliJ IDEA is considered by many developers to be one of the smartest Java IDEs currently available. Using keyboard shortcuts can significantly improve coding efficiency and project navigation speed.

Core Actions

Key (Win/Linux) Key (macOS) Description
Shift + Shift Shift + Shift Search Everywhere
Ctrl + Shift + A Cmd + Shift + A Find Action
Alt + Enter Opt + Enter Show Context Actions / Quick Fix
Ctrl + F / R Cmd + F / R Find / Replace
Ctrl + Shift + F / R Cmd + Shift + F / R Global Find / Replace

Navigation

Key (Win/Linux) Key (macOS) Operation
Ctrl + N Cmd + O Go to Class
Ctrl + Shift + N Cmd + Shift + O Go to File
Ctrl + E Cmd + E Recent Files
Ctrl + B Cmd + B Go to Declaration
Ctrl + Alt + B Cmd + Opt + B Go to Implementation
Alt + F12 Opt + F12 Open Terminal

Editing

Key (Win/Linux) Key (macOS) Operation
Ctrl + / Cmd + / Line Comment
Ctrl + D Cmd + D Duplicate Current Line
Ctrl + Y Cmd + Delete Delete Current Line
Ctrl + Alt + L Cmd + Opt + L Reformat Code
Ctrl + Shift + Arrow Cmd + Shift + Arrow Move Line Up/Down
Alt + Insert Cmd + N Generate… (Getter/Setter, etc.)

Refactoring

Key (Win/Linux) Key (macOS) Operation
Shift + F6 Shift + F6 Rename
Ctrl + Alt + V Cmd + Opt + V Extract Variable
Ctrl + Alt + M Cmd + Opt + M Extract Method
Ctrl + Alt + C Cmd + Opt + C Extract Constant

Run & Debug

Key (Win/Linux) Key (macOS) Operation
Shift + F10 Ctrl + R Run
Shift + F9 Ctrl + D Debug
F8 F8 Step Over
F7 F7 Step Into
Alt + F8 Opt + F8 Evaluate Expression
Ctrl + F8 Cmd + F8 Toggle Breakpoint