PyCharm as a keyboard-centric IDE suggests keyboard shortcuts for most of its commands. In this topic, you can find a short list of the most indispensable of them, to make your first steps with PyCharm easy.
PyCharm also provides the default keymap reference in
pdf
format. To view the keymap reference, choose
on the main menu.
See the detailed list of default keyboard shortcuts in the Keyboard Shortcuts Reference and learn how to customize your preferred keymap in the Configuring Keyboard Shortcuts section.
Shortcut | Description |
---|---|
Ctrl+Shift+A | Find action by name |
Alt+Enter | Show the list of available intention actions. |
Alt+F1 | Switch between views ( Project, Structure, etc.). |
Ctrl+Tab or Ctrl+Shift+Tab | Switch between the tool windows and files opened in the editor. |
Alt+Home | Show the Navigation bar. |
Ctrl+J | Insert a live template. |
Ctrl+Alt+J | Surround with a live template. |
F4 | Edit an item from the Project or another tree view. |
Ctrl+Slash or Ctrl+NumPad /
Ctrl+Shift+Slash or Ctrl+Shift+NumPad / | Comment or uncomment a line or fragment of code with the line or block comment. |
Ctrl+N
Ctrl+Shift+N | Find class or file by name. |
Ctrl+D | Duplicate the current line or selection. |
Ctrl+W and Ctrl+Shift+W | Incremental expression selection. |
Ctrl+F or Alt+F3 | Find text string in the current file. |
Ctrl+Shift+F | Find text in the project or in the specified directory. |
Double-press Shift | Search everywhere. |
Ctrl+Shift+F7 | Quick view the usages of the selected symbol. |
Ctrl+NumPad Plus or Ctrl+Equals
Ctrl+NumPad - or Ctrl+Minus | Expand or collapse a code block in the editor. |
Ctrl+Space | Invoke code completion. |
The complete keymap reference is available on the main menu (
).