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 · 40 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 / Linux / macOSCtrl + 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, and open the actions that change the current symbol or selection.
| Action | Shortcuts |
|---|---|
| Show Intention Actions | Windows / LinuxAlt + Enter macOSOption + Enter |
| Generate | Windows / LinuxAlt + Insert macOSCmd + N |
| Run Anything | Windows / Linux / macOSCtrl then Ctrl |
| Choose a configuration and debug | Windows / LinuxAlt + Shift + F9 macOSCtrl + Option + D |
| View Breakpoints | Windows / LinuxCtrl + Shift + F8 macOSCmd + Shift + F8 |
| Attach to Process | Windows / LinuxCtrl + Alt + F5 macOSOption + Shift + F5 |
| Refactor This | Windows / LinuxCtrl + Alt + Shift + T macOSCtrl + T |
| Reformat Code | Windows / LinuxCtrl + Alt + L macOSCmd + Option + L |
| Create new item in the current directory | Windows / LinuxCtrl + Alt + Insert macOSCtrl + Option + N |
| Copy Paths | Windows / LinuxCtrl + Shift + C macOSCmd + Shift + C |
Source
official PyCharm keyboard shortcuts · Checked
PyCharm 2026.2 default keymap. You can switch or customize keymaps, and plugin shortcuts aren't listed.