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 shortcuts

Search and navigation

Search commands find actions, files, symbols, and recent work without leaving the editor. These are the fastest way to move through a large project.

ActionShortcuts
Search Everywhere
Windows / Linux / macOSShift + Shift
Find Action
Windows / LinuxCtrl + Shift + A
macOSCmd + Shift + A
Show the Project window
Windows / LinuxAlt + 1
macOSCmd + 1
Open Recent Files
Windows / LinuxCtrl + E
macOSCmd + E
Find Usages
Windows / LinuxAlt + F7
macOSOption + F7
Select In
Windows / LinuxAlt + F1
macOSOption + F1
Open Settings
Windows / LinuxCtrl + Alt + S
macOSCmd + ,
Open the VCS Operations popup
Windows / LinuxAlt + `
macOSCtrl + V

Basic editing

Basic editing keys apply to the current selection or line. PyCharm's keymap can change them, especially when another installed keymap is active.

ActionShortcuts
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.

ActionShortcuts
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

Editor navigation

Editor navigation keeps the code pane in focus while changing windows, tabs, and the active editor area.

ActionShortcuts
Maximize the editor pane
Windows / LinuxCtrl + Shift + F12
macOSCmd + Shift + F12
Switch focus to the editor
Windows / Linux / macOSEscape
Create a scratch file
Windows / LinuxCtrl + Alt + Shift + Insert
macOSCmd + Option + Shift + Insert
Open source in a new window
Windows / Linux / macOSShift + F4
Increase font size in all editors
Windows / LinuxAlt + Shift + .
macOSOption + Shift + .
Decrease font size in all editors
Windows / LinuxAlt + Shift + ,
macOSOption + Shift + ,

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.

Make a printable PyCharm sheet