&是什么QUOT;将共同$ P $自动pfixes"在Eclipse中吗? [英] What does "Insert common prefixes automatically" do in Eclipse?
问题描述
我一直在寻找改善自动完成在Eclipse中的一种方法,我发现这个preference设置在preference窗口中的自动插入普通prefixes,部分的Java - >编辑 - >内容辅助。
我不知道它做什么,因为我没有感到任何区别。帮助说:
如果启用,code辅助系统会自动将类似Unix外壳扩展所有可能的补全共同preFIX。这种可反复使用,甚至在正在显示code辅助窗口。
块引用>解决方案它仅适用于一个(相对)少数病例。
想象一下,你有方法的接口
公共接口农场{
公众诠释getNumberOfDucks();
公众诠释getNumberOfChickens();
公众诠释getNumberOfGeese();
}那么,如果你有这个选项打开,然后键入
farm.getN<控制空间>
它会自动完成,以
farm.getNumberOf
在它表明你的菜单。
没有它,它会告诉你的菜单马上,没有填写任何东西。这似乎只是为成员的工作,而不是为类。
I was looking for a way to improve autocompletion in Eclipse and I found this preference setting "insert common prefixes automatically" in the preference window, section Java -> Editor -> Content Assist.
I wonder what it does because I didn't feel any difference. The help says:
If enabled, code assist will automatically insert the common prefix of all possible completions similar to Unix shell expansion. This can be used repeatedly, even while the code assist window is being displayed.
解决方案It only applies in a (relatively) small number of cases.
Imagine you have an interface with methods
public interface Farm { public int getNumberOfDucks(); public int getNumberOfChickens(); public int getNumberOfGeese(); }
then if you have this option turned on and type
farm.getN<control-space>
it will autocomplete to
farm.getNumberOf
before it shows you the menu. Without it, it will show you the menu straight away, without filling anything in.
It only seems to work for members, and not for classes.
这篇关于&是什么QUOT;将共同$ P $自动pfixes&QUOT;在Eclipse中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!