PyCharm keyboard shortcuts
PyCharm is JetBrains' editor for Python, with code checks, a debugger, and project tools built in. Its default keymap covers Search Everywhere and Find Usages, basic editing, running and debugging, and moving around the editor.
Windows, Linux, macOS · 42 shortcutsBasic editing
Basic editing keys apply to the current selection or line. PyCharm's keymap can change them, especially when another installed keymap is active.
| Action | Shortcuts |
|---|---|
| Cut | Windows / LinuxCtrl + X macOSCmd + X |
| Copy | Windows / LinuxCtrl + C macOSCmd + C |
| Paste | Windows / LinuxCtrl + V macOSCmd + V |
| Paste from History | Windows / LinuxCtrl + Shift + V macOSCmd + Shift + V |
| Save All | Windows / LinuxCtrl + S macOSCmd + S |
| Undo | Windows / LinuxCtrl + Z macOSCmd + Z |
| Redo | Windows / LinuxCtrl + Shift + Z macOSCmd + Shift + Z |
| Indent selection | Windows / Linux / macOSTab |
| Unindent line or selection | Windows / Linux / macOSShift + Tab |
| Auto-indent lines | Windows / LinuxCtrl + Alt + I macOSCtrl + Option + I |
| Start a new line | Windows / Linux / macOSShift + Enter |
| Start a new line before the current line | Windows / LinuxCtrl + Alt + Enter macOSCmd + Option + Enter |
| Delete line | Windows / LinuxCtrl + Y macOSCmd + Backspace |
| Join lines | Windows / LinuxCtrl + Shift + J macOSCmd + Shift + J |
| Duplicate line or selection | Windows / LinuxCtrl + D macOSCmd + D |
| Toggle case | Windows / LinuxCtrl + Shift + U macOSCmd + Shift + U |
Code actions and project work
These commands generate code, reformat it, rebuild a project, and open the actions that change the current symbol or selection.
| Action | Shortcuts |
|---|---|
| Rebuild | Windows / LinuxCtrl + Shift + F9 macOSCmd + Shift + F9 |
| Show Intention Actions | Windows / LinuxAlt + Enter macOSOption + Enter |
| Generate | Windows / LinuxAlt + Insert macOSCmd + N |
| Run Anything | Windows / Linux / macOSCtrl + Ctrl |
| Debug | Windows / LinuxAlt + Shift + F9 macOSCtrl + Option + D |
| View Breakpoints | Windows / LinuxCtrl + Shift + F8 macOSCmd + Shift + F8 |
| Attach to Process | Windows / LinuxCtrl + Alt + F5 macOSCmd + Option + F5 |
| Refactor This | Windows / LinuxCtrl + Alt + Shift + T macOSCtrl + Option + Shift + T |
| Reformat Code | Windows / LinuxCtrl + Alt + L macOSCmd + Option + L |
| Build Project | Windows / LinuxCtrl + F9 macOSCmd + F9 |
| Create new item in the current directory | Windows / LinuxCtrl + Alt + Insert macOSCmd + Option + N |
| Copy Paths | Windows / LinuxCtrl + Shift + C macOSCmd + Shift + C |
Source
official PyCharm keymap reference · Checked
PyCharm 2026.2 keymap reference checked September 1, 2026. JetBrains lets users choose and customize a keymap, so these entries describe the published default reference actions and not every plugin shortcut.