Eclipse Intellisense?

EclipseIntellisenseContent Assist

Eclipse Problem Overview


How do I tell Eclipse to automatically make suggestions as I type? I'm looking for a Visual Studio Intellisense-like feature with Resharper.

Currently I have to press CTRL+Space each time.

Eclipse Solutions


Solution 1 - Eclipse

I've get closer to VisualStudio-like behaviour by setting the "Autocomplete Trigger for Java" to

.(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

and setting delay to 0.

Now I'd like to realize how to make it autocomplete method name when I press ( as VS's Intellisense does.

Solution 2 - Eclipse

You don't have to press CTRL * space but maybe the delay is too big or you don't like the trigger (default is '.'). Go to

> Window -> Preferences -> > Java/Editor/Content Assist

And change the settings under Auto Activation to your likings.

If this does not work for windows users then see this answer.

Solution 3 - Eclipse

Tony is a pure genius. However to achieve even better auto-completion try setting the triggers to this:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz =.(!+-*/~,[{@#$%^&

(specifically aranged in order of usage for faster performance :)

Solution 4 - Eclipse

If it's not working even when you already have Code Assist enabled, Eclipse's configuration files are probably corrupt. A solution that worked for me (on Eclipse 3.5.2) was to:

  1. Close Eclipse.
  2. Rename the workspace directory.
  3. Start Eclipse. (This creates a new workspace directory.)
  4. Import (with copy) the Java projects from the old workspace.

Solution 5 - Eclipse

I once had the same problem, and then I searched and found this and it worked for me:

I had got some of the boxes unchecked, so I checked them again, then it worked. Just go to

> Windows > Preferences > Java > Editor > Content Assist > Advanced

and check the boxes which you want .

Solution 6 - Eclipse

d3dave's answer is cool. However theGreenGarbage mentioned an issue about it which I too find rather annoying. So here's one that doesn't immediately suggest something after '=' sign and when typing blank space:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.(!+-*/~,[{@#$%^&

What I did was simply remove the space and '=' chars from the array :)

Alternatively if you want suggestions when typing blank space, but not after '=' sign:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz .(!+-*/~,[{@#$%^&

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionIan VinkView Question on Stackoverflow
Solution 1 - EclipseTonyView Answer on Stackoverflow
Solution 2 - EclipseDaffView Answer on Stackoverflow
Solution 3 - Eclipsed3daveView Answer on Stackoverflow
Solution 4 - EclipseRok StrnišaView Answer on Stackoverflow
Solution 5 - Eclipseuser3074382View Answer on Stackoverflow
Solution 6 - EclipseMuhsinFatihView Answer on Stackoverflow