PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Configure keyboard shortcuts

Last modified: 02 September 2021

File | Settings | Keymap for Windows and Linux

PyCharm | Preferences | Keymap for macOS

Ctrl+Alt+S the Settings/Preferences icon

PyCharm includes several predefined keymaps and lets you customize frequently used shortcuts.

To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keymap.

Keymap settings

PyCharm automatically suggests a predefined keymap based on your environment. Make sure that it matches the OS you are using or select the one that matches shortcuts from another IDE or editor you are used to (for example, Emacs).

You cannot change predefined keymaps. When you modify any shortcut, PyCharm creates a copy of the currently selected keymap, which you can configure. Click The Show Scheme Actions icon to duplicate the selected keymap, rename, remove, or restore it to default values.

The keymap itself is a list of actions with corresponding keyboard and mouse shortcuts, and abbreviations. To find an action by name, type it in the search field. If you know the shortcut of an action, click The Find Action by Shortcut icon and press the key combination in the Find Shortcut dialog.

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.