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

When These Shortcuts Matter

This page is most useful when you spend a lot of time in IntelliJ IDEA navigating large codebases, renaming symbols, applying inspections, and switching rapidly between implementation, usages, debug sessions, and Git operations. The best return usually comes from mastering search, rename, quick fix, and reformat first.

Common Shortcut Pitfalls

Mac and Windows/Linux keymaps differ more than many people expect, so make sure you are learning the right row. Another issue is using the IDE with a custom keymap or Vim emulation enabled, which can shadow default commands and make generic shortcut lists feel wrong.

Related

Knowledge is power.