Editor commands and menu actions get their keyboard shortcuts from the active keymap. On the Linux desktop, IntelliJ IDEA lets you change a shortcut for one action in Settings > Keymap. PyCharm and GoLand use the same settings page.

When you edit a preset such as GNOME, the IDE creates an editable copy and leaves the preset available. Within the copy, adding a shortcut keeps the action's original binding until you remove it.

A combination can already belong to another IDE action or to the desktop itself. A free combination keeps the other action's shortcut intact and avoids having two IDE actions compete for the same keys.

Steps to change keyboard shortcuts in JetBrains IDE:

Start with a project open and an action that already has a shortcut. IntelliJ IDEA shows its main menu under the Main Menu button in the window header, as in a new installation. The pictured action is Find Action…, which opens a search box with the Actions tab selected.

If a new project shows the air panel with an Accept and Install offer, the Main Menu is still available for step 1.

  1. Open the Main Menu from the three-line button.
  2. Choose Settings… from the File menu.
  3. Select Keymap in the Settings sidebar if it is not already selected.
  4. Click the search box above the Keymap action list.
  5. Type the name of the action you want to change, such as Find Action, in the Keymap search box.
  6. Right-click the action in the results, such as Find Action… under Main Menu > Help.
  7. Choose Add Keyboard Shortcut from the context menu.
  8. Press your desired key combination in the focused field of the Keyboard Shortcut dialog.
  9. Press a different key combination if the field does not show the combination you pressed or Already assigned to: appears.

    The desktop can intercept a shortcut before it reaches the IDE, leaving the field unchanged without a warning. The warning names the IDE action that uses those keys. In the example, Ctrl+Shift+F belongs to Find in Files, and Ctrl+Shift+Y clears the warning.

  10. Click OK in the Keyboard Shortcut dialog once the field shows your chosen replacement without a warning and it differs from the original shortcut.
  11. Right-click the same action to show the entries for its shortcuts.
  12. Choose the Remove entry for the original combination, such as Remove Ctrl+Shift+A.
  13. Click OK in Settings to save the keymap.
  14. Press the replacement shortcut where you normally use the action, such as Ctrl+Shift+Y in the project window.
  15. Verify that the intended action runs, such as Find Action… opening a search box with Actions selected.
Share this guide