Search code examples
intellij-ideaautocomplete

Cycle through autocomplete suggestions without arrows


I'm really impressed with the autocomplete feature of the IntelliJ IDE so far.

What I'd like to do, is cycle through the autocomplete suggestions I get when hitting Ctrl + Space without using the arrow keys (, ).

The reason for this is that I prefer to keep my fingers on the home row (I'm using IntelliJ's Vim emulator additionally).

For example, how would I select sortThis instead of sorted without using the arrow keys or the mouse?

autocompletion example


Solution

  • Peter Gromov's answer brought me to a satisfying solution:

    In IntelliJ's settings, for Keymap → Editor Actions → Down I set a custom shortcut: Ctrl + J.

    This way I can cycle forward through the suggestions.

    down_shortcut

    Setting a shortcut for Down with Selection or Scroll Line Down in the IdeaVim-specific shortcuts did not affect the selection of autocomplete suggestions though.