循环浏览没有箭头的自动完成建议 [英] Cycle through autocomplete suggestions without arrows

查看:74
本文介绍了循环浏览没有箭头的自动完成建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我对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的

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 SelectionScroll 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆