IntelliJ IDEA Keyboard Shortcuts

A deep IntelliJ IDEA shortcuts guide for navigation, editing, refactoring, debugging, and Git.

IntelliJ IDEA Keyboard Shortcuts banner

Search & Navigation (Mac)

Key / CodeDescription
Shift + ShiftSearch everywhere
Cmd + NGo to class
Cmd + Shift + NGo to file
Cmd + Option + Shift + NGo to symbol
Cmd + ERecent files
Cmd + BGo to declaration
Cmd + Option + BGo to implementation

Search & Navigation (Windows/Linux)

Key / CodeDescription
Shift + ShiftSearch everywhere
Ctrl + NGo to class
Ctrl + Shift + NGo to file
Ctrl + Alt + Shift + NGo to symbol
Ctrl + ERecent files
Ctrl + BGo to declaration
Ctrl + Alt + BGo to implementation

Editing

Key / CodeDescription
Cmd/Ctrl + /Line comment
Cmd/Ctrl + Shift + /Block comment
Option/Alt + Shift + Up/DownMove line
Cmd/Ctrl + DDuplicate line/selection
Option/Alt + EnterShow intention actions
Cmd/Ctrl + Option/Alt + LReformat code

Refactor

Key / CodeDescription
Shift + F6Rename
Cmd/Ctrl + Option/Alt + VExtract variable
Cmd/Ctrl + Option/Alt + MExtract method
Cmd/Ctrl + Option/Alt + CExtract constant
Cmd/Ctrl + Option/Alt + NInline

Find Usage & Hierarchy

Key / CodeDescription
Option/Alt + F7Find usages
Cmd/Ctrl + F7Show usages in file
Cmd/Ctrl + Option/Alt + HCall hierarchy

Run & Debug

Key / CodeDescription
Ctrl + R (Mac)Run
Ctrl + D (Mac)Debug
Shift + F10Run
Shift + F9Debug
F8 / F7 / Shift+F8Step over / into / out

Git

Key / CodeDescription
Cmd/Ctrl + KCommit
Cmd/Ctrl + TUpdate project
Cmd/Ctrl + Shift + KPush

Pro Workflow

Fast loop: search → quick fix → refactor → format → commit.

Shift + Shift  # search
Alt/Option + Enter  # quick fix
Shift + F6  # rename
Cmd/Ctrl + Alt/Option + L  # format
Cmd/Ctrl + K  # commit
Knowledge is power.