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

Search & Navigation (Mac)
| Key / Code | Description |
|---|---|
| Shift + Shift | Search everywhere |
| Cmd + N | Go to class |
| Cmd + Shift + N | Go to file |
| Cmd + Option + Shift + N | Go to symbol |
| Cmd + E | Recent files |
| Cmd + B | Go to declaration |
| Cmd + Option + B | Go to implementation |
Search & Navigation (Windows/Linux)
| Key / Code | Description |
|---|---|
| Shift + Shift | Search everywhere |
| Ctrl + N | Go to class |
| Ctrl + Shift + N | Go to file |
| Ctrl + Alt + Shift + N | Go to symbol |
| Ctrl + E | Recent files |
| Ctrl + B | Go to declaration |
| Ctrl + Alt + B | Go to implementation |
Editing (Mac)
| Key / Code | Description |
|---|---|
| Cmd + / | Line comment |
| Cmd + Shift + / | Block comment |
| Option + Shift + Up/Down | Move line |
| Cmd + D | Duplicate line/selection |
| Option + Enter | Show intention actions |
| Cmd + Alt + L | Reformat code |
Editing (Windows/Linux)
| Key / Code | Description |
|---|---|
| Ctrl + / | Line comment |
| Ctrl + Shift + / | Block comment |
| Alt + Shift + Up/Down | Move line |
| Ctrl + D | Duplicate line/selection |
| Alt + Enter | Show intention actions |
| Ctrl + Alt + L | Reformat code |
Refactor
| Key / Code | Description |
|---|---|
| Shift + F6 | Rename |
| Cmd/Ctrl + Option/Alt + V | Extract variable |
| Cmd/Ctrl + Option/Alt + M | Extract method |
| Cmd/Ctrl + Option/Alt + C | Extract constant |
Find Usage & Call Hierarchy
| Key / Code | Description |
|---|---|
| Option/Alt + F7 | Find usages |
| Cmd/Ctrl + F7 | Show usages in file |
| Cmd/Ctrl + Option/Alt + H | Call hierarchy |
Run & Debug
| Key / Code | Description |
|---|---|
| Ctrl + R (Mac) | Run |
| Ctrl + D (Mac) | Debug |
| Shift + F10 | Run |
| Shift + F9 | Debug |
| F8 | Step over |
| F7 | Step into |
| Shift + F8 | Step out |
VCS
| Key / Code | Description |
|---|---|
| Cmd/Ctrl + K | Commit |
| Cmd/Ctrl + T | Update project |
| Cmd/Ctrl + Shift + K | Push |
Pro Workflow
日常节奏:快速搜索 → 生成代码 → 快速修复 → 格式化 → 提交。
Shift + Shift # search
Alt/Option + Enter # quick fix
Cmd/Ctrl + Alt/Option + L # format
Cmd/Ctrl + K # commitKnowledge is power.