Improving Eclipse autocompletion?

19,380

Solution 1

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

Solution 2

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

Solution 3

ctrl + space

Solution 4

You can press "t" and then Ctrl+Space.. is it?

Solution 5

If you press ctrl+space key combination, eclipse will show you the code assist window.

Type t and then hit ctrl+space, it will show you possible matches

Share:
19,380
stefan.at.wpf
Author by

stefan.at.wpf

Updated on June 05, 2022

Comments

  • stefan.at.wpf
    stefan.at.wpf about 2 years

    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!

  • stefan.at.wpf
    stefan.at.wpf about 13 years
    it does something when I pressed strg+space, yet I don't really understand what it does?
  • Xorty
    Xorty almost 13 years
    And you probably want to add there also space character, because then it completes after every space :)
  • MrPurpleStreak
    MrPurpleStreak almost 13 years
    This is the answer you probably want if you found this question (it's the one I wanted at least!)
  • Simon Verbeke
    Simon Verbeke almost 12 years
    It appears that in the latest version of eclipse (I'm actually using easyEclipse, which is eclipse + addons, version 1.3.1.1). You can only enter 4 characters in that field. So at most you can ask it to trigger for 'ABCD'.
  • derwiwie
    derwiwie about 6 years
    this is a cool feature; didn't know about it so far. I bound it to "Alt + ." to be more consistent with "Ctrl + ." for "Next". Is there an equivalent to "Previous" ("Ctrl + ,") also in this context, i.e. jump back to the previous word completion?