Improving Eclipse autocompletion?

stefan.at.wpf picture stefan.at.wpf · May 8, 2011 · Viewed 18.2k times · Source

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

String test="hello";

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).

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!

Answer

stefan.at.wpf picture stefan.at.wpf · May 8, 2011

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:

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

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.

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

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 :-)

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