Essential shortcuts
Most important PyCharm shortcuts on Windows
| Shortcut | Action | Description |
|---|---|---|
| Shift+Shift | Search Everywhere | Find any file, class, symbol, action |
| Alt+Enter | Quick Fix | Fix errors, import missing modules, generate code |
| Ctrl+Space | Code Completion | Basic autocomplete |
| Ctrl+Shift+Space | Smart Completion | Context-aware completion |
| Ctrl+B | Go to Declaration | Jump to where function/class is defined |
| Ctrl+Alt+L | Reformat Code | Auto-format current file |
| Ctrl+/ | Comment/Uncomment | Toggle line comment |
| Ctrl+D | Duplicate Line | Duplicate current line |
| Shift+F10 | Run | Run current configuration |
| Ctrl+Shift+F10 | Run File | Run the file you are editing |
| Shift+F9 | Debug | Start debugger |
| F8 | Step Over | Debugger: step over |
| F7 | Step Into | Debugger: step into function |
| Ctrl+Shift+A | Find Action | Search all PyCharm actions and settings |
| Alt+F12 | Terminal | Open built-in terminal |
Refactoring shortcuts
PyCharm refactoring shortcuts on Windows
| Shortcut | Action |
|---|---|
| Shift+F6 | Rename symbol |
| Ctrl+Alt+M | Extract method |
| Ctrl+Alt+V | Extract variable |
| Ctrl+Alt+F | Extract field |
| F6 | Move |
| Ctrl+F6 | Change signature |
FAQ
Shortcut questions
PyCharm shortcuts cheat sheet — where to find the full list?
The full shortcuts reference is in Help → Keyboard Shortcuts PDF. Or press Ctrl+Shift+A and type "keymap" to open the keymap settings where you can search and customise all shortcuts. JetBrains also publishes a printable PDF at jetbrains.com/help/pycharm/keyboard-shortcuts-and-mouse-reference.html.
How to change PyCharm shortcuts to match VS Code or Sublime Text?
File → Settings → Keymap → change from "Windows" to "VS Code" or "Sublime Text" in the dropdown. PyCharm includes keymaps for VS Code, Eclipse, Emacs, Vim and others.