JetBrains IDEs Keyboard Shortcuts

Shortcuts for IntelliJ IDEA, WebStorm, PyCharm, GoLand, and Android Studio. Split by Mac and Windows/Linux.

JetBrains IDEs 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 (Mac)

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

Editing (Windows/Linux)

Key / CodeDescription
Ctrl + /Line comment
Ctrl + Shift + /Block comment
Alt + Shift + Up/DownMove line
Ctrl + DDuplicate line/selection
Alt + EnterShow intention actions
Ctrl + 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

Find Usage & Call 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
F8Step over
F7Step into
Shift + F8Step out

VCS

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

Pro Workflow

日常节奏:快速搜索 → 生成代码 → 快速修复 → 格式化 → 提交。

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