提高Eclipse的自动完成? [英] Improving Eclipse autocompletion?

查看:116
本文介绍了提高Eclipse的自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前Eclipse的自动完成只是一个点后,或参数触发看来,我想使用它的变量太多,例如如果我有

Currently the Eclipse autocompletion seems only to be triggered after a dot or on parameters, I want to use it for variables too, e.g. if I have

字符串测试=你好;

然后我想自动完成建议测试如果我开始下一行中键入T(例如,如果我打算改变变量测试的值)。

then I want the autocompletion to suggest "test" if I start typing "t" in the next line (e.g. if I intent to change the value of the variable test).

有任何Eclipse插件能够这样做呢?我已经检查了Eclipse内容辅助选项,但好像有没有选项我想要什么?感谢您的任何暗示!

Is there any Eclipse plugin capable of doing this? I already checked the Eclipse content assist options, but seems like there no option for what I want? Thanks for any hint!

推荐答案

首先,感谢所有的答复。他们是正确的,但是你必须preSS每次组合键。下面是它的自动完成:

First of all, thanks for all the replies. They are correct, however you have to press the key combination each time. Here's how it's done automatically:

这插件是没有必要了。只要进入
      preferences>的Java>编辑>内容辅助
  和粘贴:

That plug-in is not necessary any more. Just go to Preferences > Java > Editor > Content Assist and paste:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.


  
  

进入自动激活触发器的Java:字段

into the "Auto activation triggers for Java:" field.

这只是任何英文字母字符后点后触发自动激活。
<一href=\"https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157#c12\">https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157#c12
正常工作: - )

This simply triggers auto activation after any English alphabet character and after dot. https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157#c12 Works fine :-)

提示:你可能要另外设置自动激活延迟为0,至少如果你是用来视觉工作室; - )

Hint: You probably want to additionally set the auto activation delay to 0, at least if you are used to visual studio ;-)

这篇关于提高Eclipse的自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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