PyCharm keyboard shortcuts for Mac
48 default PyCharm shortcuts on Mac, grouped by task.
48 shortcuts
Keys:
Run and debug
12 shortcuts| Action | Keys |
|---|---|
| Run the current file | CtrlShiftR |
| Debug the current file | CtrlShiftD |
| Run the last configuration | CtrlR |
| Debug the last configuration | CtrlD |
| Run the selection in the Python console | OptionShiftE |
| Toggle a breakpoint | CmdF8 |
| Step overDebugging | F8 |
| Step intoDebugging | F7 |
| Step outDebugging | ShiftF8 |
| ResumeDebugging | OptionCmdR |
| Run to the cursorDebugging | OptionF9 |
| Evaluate an expressionDebugging | OptionF8 |
Search and navigation
14 shortcuts| Action | Keys |
|---|---|
| Search everywhere | Shift,Shift |
| Find an action | ShiftCmdA |
| Go to a class | CmdO |
| Go to a file | ShiftCmdO |
| Recent files | CmdE |
| Go to a line | CmdL |
| File structure | CmdF12 |
| Go to the declaration | CmdB |
| Find usages | OptionF7 |
| Back | Cmd[ |
| Forward | Cmd] |
| Quick documentation | F1 |
| Find in files | ShiftCmdF |
| Replace in files | ShiftCmdR |
Editing
13 shortcuts| Action | Keys |
|---|---|
| Show intention actions and quick fixes | OptionEnter |
| Basic completion | CtrlSpace |
| Parameter info | CmdP |
| Reformat code | OptionCmdL |
| Optimize imports | CtrlOptionO |
| Comment with line comment | Cmd/ |
| Duplicate the line | CmdD |
| Delete the line | CmdBackspace |
| Move the statement up | ShiftCmd↑ |
| Move the statement down | ShiftCmd↓ |
| Extend the selection | Option↑ |
| Surround with (if, try, with) | OptionCmdT |
| Generate code | CmdN |
Refactoring and tools
9 shortcuts| Action | Keys |
|---|---|
| Rename | ShiftF6 |
| Extract method | OptionCmdM |
| Extract variable | OptionCmdV |
| Refactor this | CtrlT |
| Terminal | OptionF12 |
| Project tool window | Cmd1 |
| Commit | CmdK |
| Push | ShiftCmdK |
| Settings | Cmd, |
No shortcuts match. Try fewer words, the key names only, or search every app.
These are the default PyCharm key bindings on Mac, from JetBrains's official list for version 2025.2. Shortcuts that exist only on another system are left out here; the all-systems view shows every binding side by side.
Other systems: PyCharm shortcuts for Windows, PyCharm shortcuts for Linux. Or print the PyCharm cheat sheet.