Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Improving Eclipse autocompletion?

Tags:

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!

like image 949
stefan.at.wpf Avatar asked May 08 '11 19:05

stefan.at.wpf


People also ask

How do I enable Content Assist in Eclipse?

To enable the Content Assist window to open automatically, go to the Content Assist Preferences page, accessed from Window | Preferences | PHP | Editor | Content Assist and mark the 'Enable auto-activation' checkbox.

Does Eclipse IDE have IntelliSense?

Microsoft Visual Studio has a famous feature called IntelliSense. Eclipse has a similar built in feature called "Code Assist" which I find very useful. Code Assist is triggered automatically in a number of situations (for example, typing the "." after a variable name or class name).


3 Answers

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

like image 77
stefan.at.wpf Avatar answered Nov 28 '22 13:11

stefan.at.wpf


In addition to the suggestions above, did you try ALT + / it does incremental matching? No?

like image 39
Narayan Avatar answered Nov 28 '22 13:11

Narayan


ctrl + space

like image 29
Matthew Gilliard Avatar answered Nov 28 '22 14:11

Matthew Gilliard