PyCharm Keyboard Shortcuts for Windows

Keyboard shortcuts for PyCharm on Windows. Covers editing, navigation, code completion, refactoring, running and debugging, and version control.
Key label style

Build projects

New in This Directory
Ctrl+Alt+Insert
Build Project
Ctrl+F9
Rebuild
Ctrl+Shift+F9

Basic editing

Cut
Ctrl+X
Copy
Ctrl+C
Paste
Ctrl+V
Paste as Plain Text
Ctrl+Alt+Shift+V
Paste from History...
Ctrl+Shift+V
Copy Paths
Ctrl+Shift+C
Copy Reference
Ctrl+Alt+Shift+C
Save All
Ctrl+S
Undo
Ctrl+Z
Redo
Ctrl+Shift+Z
Indent Selection
Tab
Unindent Line or Selection
Shift+Tab
Auto-Indent Lines
Ctrl+Alt+I
Start New Line
Shift+Enter
Start New Line Before Current
Ctrl+Alt+Enter
Delete Line
Ctrl+Y
Join Lines
Ctrl+Shift+J
Duplicate Line or Selection
Ctrl+D
Toggle Case
Ctrl+Shift+U
Scratch File
Ctrl+Alt+Shift+Insert
Open Source in New Window
Shift+F4
Increase Font Size in All Editors
Alt+Shift+.
Decrease Font Size in All Editors
Alt+Shift+,

Caret navigation

Move Caret to Previous Word
Ctrl+Left
Move Caret to Next Word
Ctrl+Right
Move Caret to Line Start
Home
Move Caret to Line End
End
Move Caret to Matching Brace
Ctrl+Shift+M
Move Caret to Code Block Start
Ctrl+[
Move Caret to Code Block End
Ctrl+]
Next Method
Alt+Down
Previous Method
Alt+Up
Move Caret to Page Top
Ctrl+Pg Up
Move Caret to Page Bottom
Ctrl+Pg Dn
Page Up
Pg Up
Page Down
Pg Dn
Move Caret to Text Start
Ctrl+Home
Move Caret to Text End
Ctrl+End

Select text

Select All
Ctrl+A
Left with Selection
Shift+Left
Right with Selection
Shift+Right
Move Caret to Previous Word with Selection
Ctrl+Shift+Left
Move Caret to Next Word with Selection
Ctrl+Shift+Right
Move Caret to Line Start with Selection
Shift+Home
Move Caret to Line End with Selection
Shift+End
Up with Selection
Shift+Up
Down with Selection
Shift+Down
Move Caret to Code Block Start with Selection
Ctrl+Shift+[
Move Caret to Code Block End with Selection
Ctrl+Shift+]
Move Caret to Page Top with Selection
Ctrl+Shift+Pg Up
Move Caret to Page Bottom with Selection
Ctrl+Shift+Pg Dn
Page Up with Selection
Shift+Pg Up
Page Down with Selection
Shift+Pg Dn
Move Caret to Text Start with Selection
Ctrl+Shift+Home
Move Caret to Text End with Selection
Ctrl+Shift+End
Extend Selection
Ctrl+W
Shrink Selection
Ctrl+Shift+W

Code folding

Expand
Ctrl+Num +
Collapse
Ctrl+Num -
Expand Recursively
Ctrl+Alt+Num +
Collapse Recursively
Ctrl+Alt+Num -
Expand All
Ctrl+Shift+Num +
Collapse All
Ctrl+Shift+Num -
Fold Selection
Ctrl+.

Multiple carets and selection ranges

Add/Remove Caret
Alt+Click
Toggle Column Selection Mode
Alt+Shift+Insert
Clone Caret Above
Double Ctrl + Up
Clone Caret Below
Double Ctrl + Down
Add Caret to Each Line in Selection
Alt+Shift+G
Add Selection for Next Occurrence
Alt+J
Select All Occurrences
Ctrl+Alt+Shift+J
Deselect Last Occurrence
Alt+Shift+J
Create Rectangular Selection
Alt+Shift+Middle-click
Drag to Create Rectangular Selection
Alt+Shift+Click
Drag to Create Multiple Rectangular Selections
Ctrl+Alt+Shift+Click

Coding assistance

Show Intention Actions
Alt+Enter
Basic Completion
Ctrl+Space
Type-Matching Completion
Ctrl+Shift+Space
Second Basic Completion
Ctrl+Alt+Space
Complete Current Statement
Ctrl+Shift+Enter
Reformat Code
Ctrl+Alt+L
Parameter Info
Ctrl+P
Quick Documentation
Ctrl+Q
Move Statement Up
Ctrl+Shift+Up
Move Statement Down
Ctrl+Shift+Down
Move Element Left
Ctrl+Alt+Shift+Left
Move Statement Right
Ctrl+Alt+Shift+Right
Move Line Up
Alt+Shift+Up
Move Line Down
Alt+Shift+Down
Comment with Line Comment
Ctrl+/
Comment with Block Comment
Ctrl+Shift+/
Surround With...
Ctrl+Alt+T
Generate...
Alt+Insert

Context navigation

Next Method
Alt+Down
Previous Method
Alt+Up
Go to Line/Column...
Ctrl+G
Switcher
Ctrl+Tab
Select In...
Alt+F1
Recent Files
Ctrl+E
Recent Changes
Alt+Shift+C
Last Edit Location
Ctrl+Shift+Bksp
Back
Ctrl+Alt+Left
Forward
Ctrl+Alt+Right
Select Next Tab
Alt+Right
Select Previous Tab
Alt+Left
Toggle Anonymous Bookmark
F11
Toggle Bookmark with Digit
Ctrl+Shift+<0-9>
Toggle Bookmark with Mnemonic
Ctrl+F11
Show All Bookmarks
Shift+F11
Go to Bookmark with Digit
Ctrl+<0-9>
Show Mnemonic Bookmarks
Ctrl+Shift+F11
Show Bookmarks window
Alt+2
Show Structure window
Alt+7
Show Find window
Alt+3
Next Occurrence
Ctrl+Alt+Down
Previous Occurrence
Ctrl+Alt+Up

Find everything

Search Everywhere
Double Shift
Find...
Ctrl+F
Find Next / Move to Next Occurrence
F3
Find Previous / Move to Previous Occurrence
Shift+F3
Replace...
Ctrl+R
Find in Files...
Ctrl+Shift+F
Replace in Files...
Ctrl+Shift+R
Next Occurrence of the Word at Caret
Ctrl+F3
Go to File...
Ctrl+Shift+N
File Structure
Ctrl+F12
Go to Symbol...
Ctrl+Alt+Shift+N
Find Action...
Ctrl+Shift+A

Code analysis

Show Intention Actions
Alt+Enter
Error Description
Ctrl+F1
Next Highlighted Error
F2
Previous Highlighted Error
Shift+F2
Run Inspection by Name...
Ctrl+Alt+Shift+I
Show Problems window
Alt+6

Run and debug

Run Anything
Double Ctrl
Run context configuration
Shift+F10
Run...
Alt+Shift+F10
Debug context configuration
Shift+F9
Debug...
Alt+Shift+F9
Attach to Process...
Ctrl+Alt+F5
Stop
Ctrl+F2
Resume Program
F9
Stop Background Processes...
Ctrl+Shift+F2
Step Over
F8
Force Step Over
Alt+Shift+F8
Step Into
F7
Smart Step Into
Shift+F7
Force Step Into
Alt+Shift+F7
Step Out
Shift+F8
Run To Cursor
Alt+F9
Force Run To Cursor
Ctrl+Alt+F9
Show Execution Point
Alt+F10
Evaluate Expression...
Alt+F8
Quick Evaluate Expression
Ctrl+Alt+F8
Toggle Line Breakpoint
Ctrl+F8
Toggle Temporary Line Breakpoint
Ctrl+Alt+Shift+F8
View Breakpoints...
Ctrl+Shift+F8
Edit Breakpoint
Ctrl+Shift+F8
Show Run window
Alt+4
Show Debug window
Alt+5
Show Services window
Alt+8

Refactorings

Refactor This...
Ctrl+Alt+Shift+T
Rename...
Shift+F6
Change Signature...
Ctrl+F6
Inline...
Ctrl+Alt+N
Move...
F6
Extract Function...
Ctrl+Alt+M
Introduce Field...
Ctrl+Alt+F
Introduce Parameter...
Ctrl+Alt+P
Introduce Variable...
Ctrl+Alt+V
Safe Delete...
Alt+Del

Global VCS actions

VCS Operations Popup...
Alt+`
Commit...
Ctrl+K
Update Project
Ctrl+T
Rollback
Ctrl+Alt+Z
Push...
Ctrl+Shift+K
Next Change
Ctrl+Alt+Shift+Down
Previous Change
Ctrl+Alt+Shift+Up
Show Version Control window
Alt+9
Show Commit window
Alt+0

Diff Viewer

Show Diff
Ctrl+D
Compare Files
Ctrl+D
Next Difference
F7
Previous Difference
Shift+F7
Accept Left Side
Ctrl+Alt+R
Accept Right Side
Ctrl+Alt+A
Select Opposite Diff Pane
Ctrl+Shift+Tab
Show Diff Settings Popup...
Ctrl+Shift+D

Tool windows

Hide Active Tool Window
Shift+Esc
Hide All Tool Windows
Ctrl+Shift+F12
Jump to Last Tool Window
F12
Stretch to Left
Ctrl+Alt+Shift+Left
Stretch to Right
Ctrl+Alt+Shift+Right
Stretch to Top
Ctrl+Alt+Shift+Up
Stretch to Bottom
Ctrl+Alt+Shift+Down
Show Project window
Alt+1
Show Bookmarks window
Alt+2
Show Find window
Alt+3
Show Run window
Alt+4
Show Debug window
Alt+5
Show Problems window
Alt+6
Show Structure window
Alt+7
Show Services window
Alt+8
Show Version Control window
Alt+9
Show Commit window
Alt+0
Show Terminal window
Alt+F12

Intro

PyCharm on Windows uses Ctrl as its primary modifier and Alt for tool windows (Alt+1 through 0) and window stretching, the standard IntelliJ Platform keymap.

Windows-specific shortcut notes

Search Everywhere. Double-tap Shift from anywhere to search files, actions, symbols, and settings in one box.

Tool windows use Alt, not Ctrl. Alt+1 opens Project, Alt+0 opens the Commit tool window, the standard IntelliJ Platform numbering for docked panels.

Word and line navigation uses Ctrl and Home/End. Ctrl+Left/Right moves by word, Home and End jump to the start or end of the line, the standard Windows text-editing pattern.

Refactor This. Ctrl+Alt+Shift+T opens a menu of every refactoring available at the caret, rename, extract, move, safe delete, and more.

Printable PDF

The PyCharm Windows shortcut list is available as a printable PDF. Search Everywhere, Refactor This, and the run/debug shortcuts are the ones worth learning first.

FAQ

Need more than shortcuts?
Visit the PyCharm app page for an overview and helpful links.

Want to suggest a new app, report a bug, or get help? Email us at info@hkeys.app.

For anything else or just a quick hello, write to us at info@hkeys.app.