Keymap reference
When consulting this page and other pages in PyCharm documentation, you can see keyboard shortcuts for the keymap that you use in the IDE — choose it using the selector at the top of a page.
PyCharm's top keyboard shortcuts
Search Everywhere | Double Shift |
Find Action... | Ctrl+Shift+A |
Show Intention Actions | Alt+Enter |
Recent Files | Ctrl+E |
Find Usages | Alt+F7 |
Select In... | Alt+F1 |
Settings... | Ctrl+Alt+S |
Generate... | Alt+Insert |
Rebuild | Ctrl+Shift+F9 |
Run Anything | Double Ctrl |
Debug... | Alt+Shift+F9 |
View Breakpoints... | Ctrl+Shift+F8 |
Attach to Process... | Ctrl+Alt+F5 |
VCS Operations Popup... | Alt+` |
Refactor This... | Ctrl+Alt+Shift+T |
Reformat Code | Ctrl+Alt+L |
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 |
Duplicate Line or Selection | Ctrl+D |
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 |
Start New Line | Shift+Enter |
Start New Line Before Current | Ctrl+Alt+Enter |
Delete Line | Ctrl+Y |
Toggle Case | Ctrl+Shift+U |
Scratch File | Ctrl+Alt+Shift+Insert |
Open source in new window | Shift+F4 |
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+Page Up |
Move Caret to Page Bottom | Ctrl+Page Down |
Page Up | Page Up |
Page Down | Page Down |
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+Page Up |
Move Caret to Page Bottom with Selection | Ctrl+Shift+Page Down |
Page Up with Selection | Shift+Page Up |
Page Down with Selection | Shift+Page Down |
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 |
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+/ |
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 |
Last Edit Location | Ctrl+Shift+Backspace |
Back | Ctrl+Alt+Left |
Forward | Ctrl+Alt+Right |
Select Next Tab | Alt+Right |
Select Previous Tab | Alt+Left |
Show Bookmarks | Shift+F11 |
Toggle Bookmark | F11 |
Toggle Bookmark with Mnemonic | Ctrl+F11 |
Add to Favorites | Alt+Shift+F |
Show Favorites window | Alt+2 |
Show Structure window | Alt+7 |
Show Find window | Alt+3 |
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 |
Navigate from symbols
Find Usages | Alt+F7 |
Go to Declaration or Usages | Ctrl+B |
Go to Type Declaration | Ctrl+Shift+B |
Show Usages | Ctrl+Alt+F7 |
Go to Super Method | Ctrl+U |
Go to Implementation(s) | Ctrl+Alt+B |
Highlight Usages in File | Ctrl+Shift+F7 |
Code analysis
Show Intention Actions | Alt+Enter |
Next Highlighted Error | F2 |
Previous Highlighted Error | Shift+F2 |
Run Inspection by Name... | Ctrl+Alt+Shift+I |
Show Problems window | Alt+6 |
Build, Run, Debug
Build Project | Ctrl+F9 |
Rebuild | Ctrl+Shift+F9 |
Run Anything | Double Ctrl |
Run context configuration | Ctrl+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 Method... | Ctrl+Alt+M |
Introduce Field... | Ctrl+Alt+F |
Introduce Parameter... | Ctrl+Alt+P |
Introduce Variable... | Ctrl+Alt+V |
Safe Delete... | Alt+Delete |
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 |
Tool Windows
Hide Active Tool Window | Shift+Escape |
Hide All Tool Windows | Ctrl+Shift+F12 |
Jump to Last Tool Window | F12 |
Show Project window | Alt+1 |
Show Favorites 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 |
Last modified: 09 June 2021