PyCharm as a keyboard-centric IDE suggests a wide variety of keyboard shortcuts. In this topic you can find a short list of the most indispensable of them, to make your first steps with PyCharm easy.

See the detailed list of default keyboard shortcuts in the Keyboard Shortcuts Reference and learn how to customize your preferred keymap in the section Configuring Keyboard Shortcuts.

ShortcutDescription
Alt+F1Switch between views (Project, Structure, etc.).
Ctrl+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.
Alt+Enter Use the suggested quick fix.
Ctrl+Slash or Ctrl+Divide
Ctrl+Shift+Slash or Ctrl+Shift+Divide
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+F3Find text string in the current file.
Ctrl+Shift+F Find in the current folder.
Ctrl+Shift+F7 Quick view the usages of the selected symbol.
Ctrl+Add or Ctrl+Equals
Ctrl+Subtract or Ctrl+Minus
Expand or collapse a code block.
Ctrl+Space Invoke code completion.

See Also

Procedures:

Reference:

Web Resources: