PyCharm Keyboard Shortcuts
A deep PyCharm shortcuts guide for Python navigation, refactor, debugging, and testing.

Search & Navigation (Mac)
| Key / Code | Description |
|---|---|
| Shift + Shift | Search everywhere |
| Cmd + O | Go to class |
| Cmd + Shift + O | Go to file |
| Cmd + Option + O | Go to symbol |
| Cmd + E | Recent files |
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 |
Editing
| Key / Code | Description |
|---|---|
| Cmd/Ctrl + / | Line comment |
| Cmd/Ctrl + Shift + / | Block comment |
| Option/Alt + Enter | Show intention actions |
| Cmd/Ctrl + Option/Alt + L | Reformat code |
| Cmd/Ctrl + D | Duplicate line/selection |
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 |
| Cmd/Ctrl + Option/Alt + N | Inline |
Debugging
| Key / Code | Description |
|---|---|
| Ctrl + D (Mac) | Debug |
| Shift + F9 | Debug |
| F8 | Step over |
| F7 | Step into |
| Shift + F8 | Step out |
| Cmd/Ctrl + F8 | Toggle breakpoint |
Testing
| Key / Code | Description |
|---|---|
| Ctrl + Shift + F10 | Run test in context |
| Ctrl + Shift + F9 | Debug test in context |
| Alt + Shift + F10 | Select run configuration |
Pro Workflow
Daily loop: search → quick fix → refactor → run tests.
Shift + Shift # search
Alt/Option + Enter # quick fix
Shift + F6 # rename
Ctrl + Shift + F10 # run testsKnowledge is power.