PyCharm 2021.1 Help


Use this page to search for shortcuts and actions in the selected keymap, create, edit, and remove custom keymaps, and change shortcuts associated with actions in custom keymaps. Predefined keymaps are not editable. When you change shortcut associations for a predefined keymap (listed in bold), PyCharm creates a copy of that keymap, which you can modify (listed in regular font with an indent below the parent keymap).

Keymap scheme actions

Click The Show Scheme Actions menu to select an action for the selected keymap:

DuplicateCreate a child keymap based on the selected one. It is created automatically when you modify a predefined keymap.
RenameChange the name of a custom keymap.
Restore DefaultsAbandon all the changes made to a custom keymap and restore the configuration of the parent keymap.
DeleteRemove the selected custom keymap from the list.

Keymap toolbar

ItemTooltip and shortcutDescription
the Expand All button

Expand All

Ctrl+NumPad +
Expand all nodes in the content pane of actions.
the Collapse All button

Collapse All

Ctrl+NumPad -
Collapse all nodes in the content pane of actions.
the Edit Shortcut icon

Edit Shortcut


Change shortcuts for the selected action. It is possible to add new shortcuts and remove existing ones. Alternatively, you can right-click the necessary action.

Keymap menu
  • Add Keyboard Shortcut: open the Keyboard Shortcut dialog where you can specify the key combination to assign to the selected action in the current keymap.

  • Add Mouse Shortcut: open the Mouse Shortcut dialog where you can specify the combination of mouse clicks to assign to the selected action in the current keymap.

  • Remove <shortcut>: delete the shortcut from the selected action.

The Show conflicts with system shortcuts buttonShow conflicts with system shortcuts

List only those shortcuts that conflict with system hotkeys. Change them to avoid conflicts. Or you can change the corresponding system shortcuts (if possible).

Search field

Search through the content pane of actions. As you type a search string, the actions that match the search pattern are displayed.

The previously used search patterns are stored in the search history list. To add the search string to the history list, press Enter.

Click Find to reveal the history list of the previous searches.

Click the Clear button to clear the current search pattern from the field.

the Find Action by Shortcut buttonFind Action by Shortcut

Click this button to open the Find Shortcut dialog to filter out the desired actions by keystrokes.

Refer to the section Configure keyboard shortcuts to learn how to specify keyboard shortcuts.

The actions with shortcuts that match the specified criteria are shown in the content pane of actions.

the Clear Filtering buttonClear FilteringClick this button to restore the initial list of actions in the content pane.

Other options

Show F1, F2, etc. keys on the Touch BarThe option is available only on Apple MacBook Pro models with a Touch Bar. It is disabled by default, so you have to hold down the Fn key to see function keys. Enable it to always show function keys on the Touch Bar instead of controls specific to PyCharm. For more information, see Touch bar support.
Use national layout for shortcutsThe option is available only when using a non-English Latin keyboard layout. On macOS and Windows, it is enabled by default, and all characters are interpreted as determined by the layout. For Windows, this behavior is hard-coded, and you can't disable it. On Linux, it is disabled by default, and keys with special characters are interpreted as if you were using an English keyboard layout. For example, pressing the minus key - on a German keyboard will produce a forward slash /, so to execute Alt + / on a German keyboard, press ⌥-.
Use US non-alphanumeric keys for shortcutsThe option is available on Windows when using a Cyrillic layout. It is disabled by default. Enable it to map IDE actions to OEM keyboard characters as if it were an English keyboard layout.
Last modified: 26 April 2021