intellij-ideapycharm

Use HJKL in menus of JetBrains IDEs


Is it possible to use J and K when choosing a suggested auto-completion item? See the image below: I'd like to, maybe hold ALT or SHIFT (or in some other way differentiate between moving and typing), and use J and K to select the proper suggestion.

enter image description here

Is anything similar also available for moving around the menus (in Project view etc.)?


Solution

  • I was able to make this work by creating a shortcut ALT+J mapped to the Down key and ALT+K to the Up key.

    You can move up and down in the popup without needing to move your hand away from HJKL to the arrow keys.

    This also works in the Find in path window, though it does not work in the navigation menu.

    enter image description here

    Update: For Alt + K to work in the Find window since the version 2020+, one has to disable mnemonics in Settings, under Appearance & Behaviour -> Appearance -> Disable mnemonics in controls.