Eclipse:即时自动完成 [英] Eclipse: Instant autocompletion
问题描述
我不太熟悉如何使用 Eclipse autocompletes代码。我喜欢IntelliJ 提示建议的方式(有些人说这是相当反感,但我喜欢这样)。
I am not entirely comfortable with way how Eclipse autocompletes code. I like the way how IntelliJ prompts suggestions (some say it's rather aggresive, but I like it that way).
所以我去:窗口 - >首选项 - > Java - >编辑器 - >内容辅助,并将延迟设置为0ms,并将自动激活触发器设置为ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 。
So I went to: Window -> Preferences -> Java -> Editor -> Content Assist and set delay to 0ms and autoactivation trigger to ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.
现在,Eclipse的自动完成效果非常快,但有一个非常令人讨厌的事情:
它在每个空间命中都完成了变量名称 。
Now Eclipse looks really fast with autocompletion but there's one very annoying thing: It completes proposed names of variables on every space hit.
所以当我想输入:
String joe = "Joe";
eclipse足够快,可以将其破坏为:
eclipse is fast enough to ruin it to:
String joeString = ...;
换句话说,按: String joe [space]
make joeString。
我希望我很清楚enoguh,感谢您的建议:)
In other words , pressing: String joe[space]
makesjoeString.
I hope I was clear enoguh, thanks for suggestions :)
推荐答案
您可以取消选中窗口 - >首选项 - > Java - >编辑器 - >内容辅助 - >自动插入单个提案。一旦完成,您应该只得到一个提案窗口,但不会自动插入编辑器。
You can uncheck 'Window -> Preferences -> Java -> Editor -> Content Assist -> Insert single proposals automatically'. Once done, you should only get a popup window with the proposal but it will not be inserted automatically in the editor.
这篇关于Eclipse:即时自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!