Remove custom keyboard shortcut, so revert to default?

Answered

Hello,

As a newcomer to the JetBrains product family (using IntelliJ IDEA Community, RubyMine & PyCharm), I am customizing my keyboard bindings. Starting from the "Mac OS X (10.5+)" keymap, I created a custom keymap. Within this keymap, I was experimenting with a custom keyboard shortcut. Since I was not happy with the result, I tried to undo setting this custom keyboard shortcut (only this one and leave my other customizations as-is). The keyboard shortcut is removed, but the action remains highlighted in blue, indicating there is a change compared to the parent keymap.

So, without dropping my keymap altogether, how can tell IntelliJ IDEA to forget about this modification and use the keyboard shortcut from the parent keymap for this action?

Ringo

1
4 comments

Very good question. I'm looking for exactly this feature. It seems 15 years were not enough for JetBrains to make it happen. Why am I not surprised?

0

Hello Piotr Dobrogost 

This is covered in the Configure keyboard shortcuts section of the IntelliJ IDEA help, under “Reset action shortcuts to default”. To fix your specific case (clear the override for just that one action and go back to the parent keymap’s shortcut):

  1. Open Preferences | Keymap (on macOS: IntelliJ IDEA → Settings… or ⌘,).
  2. In the Keymap panel, make sure your custom keymap is selected.
  3. Find the action that’s highlighted in blue (you can use the search field).
  4. Right‑click that action.
  5. Choose Reset Shortcuts.

That restores the original shortcut from the parent keymap and removes the blue “modified” highlight for that action, without affecting your other customizations.

1

Thanks Monica for your help. You are right; I totally missed this.

0

Please sign in to leave a comment.