循环浏览没有箭头的自动完成建议 [英] Cycle through autocomplete suggestions without arrows
问题描述
到目前为止,我对IntelliJ IDE的自动完成功能印象深刻.
I'm really impressed with the autocomplete feature of the IntelliJ IDE so far.
我想做的是循环浏览我按 Ctrl + Space 时获得的自动完成建议,而无需使用箭头键(↑,↓ ).
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).
例如,如何在不使用箭头键或鼠标的情况下选择sortThis
而不是sorted
?
For example, how would I select sortThis
instead of sorted
without using the arrow keys or the mouse?
推荐答案
Peter Gromov's answer brought me to a satisfying solution:
在IntelliJ的设置中,为Keymap → Editor Actions → Down
设置了一个自定义快捷方式: Ctrl + J .
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.
在IdeaVim专用快捷方式中为Down with Selection
或Scroll Line Down
设置快捷方式并不会影响对自动完成建议的选择.
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.
这篇关于循环浏览没有箭头的自动完成建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!