PyCharm shortcuts
- 52 shortcuts
- 6 sections
- Development
- Verified against official docs
Your answer helps keep this page right.
Do these shortcuts work for you?
In Run & Debug, Choose Run Config and Choose Debug Config are Run and Debug with one modifier added. The same section has Step Over, Step Into, Step Out and Evaluate Expression.
Start with these
- Find Action
- Run
- Debug
- Toggle Breakpoint
- Context Actions
- Rename
Tips for PyCharm
- Run To Cursor ⌥F9 runs the program up to the line the cursor is on.
- Extract Method ⌥⌘M, Extract Variable ⌥⌘V and Extract Constant ⌥⌘C turn the selected code into a method, a variable or a constant.
- Structure Window ⌘7 shows the structure of the open file.
Editing13
| Action | Shortcut |
|---|---|
| Code Completion | |
| Context Actions | |
| Complete Statement | |
| Duplicate Line | |
| Delete Line | |
| Move Statement Up | |
| Move Statement Down | |
| Line Comment | |
| Block Comment | |
| Extend Selection | |
| Shrink Selection | |
| Reformat Code | |
| Generate |
Find & Replace4
| Action | Shortcut |
|---|---|
| Find | |
| Replace | |
| Find In Path | |
| Replace In Path |
Run & Debug10
| Action | Shortcut |
|---|---|
| Run | |
| Debug | |
| Choose Run Config | |
| Choose Debug Config | |
| Step Over | |
| Step Into | |
| Step Out | |
| Run To Cursor | |
| Evaluate Expression | |
| Toggle Breakpoint |
Refactoring5
| Action | Shortcut |
|---|---|
| Refactor This | |
| Rename | |
| Extract Method | |
| Extract Variable | |
| Extract Constant |
Tool Windows & VCS8
| Action | Shortcut |
|---|---|
| Project Window | |
| Run Window | |
| Debug Window | |
| Structure Window | |
| Vcs Window | |
| Terminal | |
| Commit | |
| Settings |
Report a problem
GitHub is public. Email is private.
Related resources
More Development shortcuts
Explore more macOS apps
Frequently Asked Questions
How many keyboard shortcuts does PyCharm have on macOS?
PyCharm has 52 keyboard shortcuts on macOS, organized into 6 sections: Search & Navigation, Editing, Find & Replace, Run & Debug, and more. This page lists all of them with searchable, organized shortcut tables.
Which PyCharm shortcuts should I learn first?
Start with Find Action (⇧⌘A), Run (⌃R), Debug (⌃D), Toggle Breakpoint (⌘F2), Context Actions (⌥↩), Rename (⇧F6). The sections on this page list the rest.
Can I download PyCharm shortcuts as a PDF?
Yes. Click the download button at the top of this page to generate a printable PDF cheat sheet with all 52 PyCharm shortcuts. The PDF includes organized sections, keycap-style key labels, and space for your own notes.
Where is the official PyCharm keyboard shortcuts documentation?
The official PyCharm keyboard shortcuts documentation is available on their website. Every shortcut on this page is sourced from and verified against the official documentation to ensure accuracy.
Do these PyCharm shortcuts work on all Mac keyboards?
Yes. These shortcuts work on all Mac keyboards, including MacBook built-in keyboards and external Apple keyboards. The modifier keys are Command (⌘), Option (⌥), Control (⌃), and Shift (⇧). On keyboards without a Function row, some F-key shortcuts may require holding the Fn key.
Maintained by Vladik Didyk
Access PyCharm shortcuts from your menu bar
KeyShortcut detects the active app and shows its shortcuts instantly. Switch it on in Settings. No memorization needed.
