Use HJKL in menus of JetBrains IDEs
Asked Answered
A

3

6

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.)?

Afterpiece answered 30/1, 2018 at 7:52 Comment(3)
No, in popup dialogs it is not possible to remap navigation keys: IDEA-108609. May be this plugin could help: plugins.jetbrains.com/plugin/9852-ijkl-shortctusNadeau
I'd love this as well.Baklava
@Baklava I posted an answer how I made this work.Afterpiece
A
9

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.

Afterpiece answered 22/11, 2018 at 8:3 Comment(0)
S
4

@Rok Povsic's solution is great and I used it a bit, but in some pop up menus like Intention actions, refactoring menu or usages the trick won't work.

So I used this Power Toys program from Microsoft to remap the Alt+J, Alt+K, Alt+H, Alt+L to arrow keys at windows level and now this works great everywhere around the IDE.

You can even specify only the app in which you want to override this shortcuts. For example for rider it will be "rider64.exe". You can find the name of the app you want to use in task manager under "Details".

enter image description here

Shawntashawwal answered 13/1, 2022 at 14:10 Comment(0)
B
0

You can remap the following menu items:

  • Select Next Node (j)
  • Select Previous Node (k)
  • Select Child Node (l)
  • Select Parent Node (h)

enter image description here

Bighead answered 3/8 at 9:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.