tags:

views:

133

answers:

2

I've just started using Eclipse and I noticed that when I start typing a local variable name it doesn't come up with suggestions like Visual Studio does until I press Ctrl-Space. Is there any way to get it to do this automatically? I find Ctrl-Space an awkward key press.

+3  A: 
  1. Window -> Preferences
  2. Java -> Editor -> Content Assist
  3. Change auto-activation to suit your preferences

alt text

You will probably want to set the delay to 0.

Yuval A
These are the settings I have. I don't think it will trigger auto assist until you type ".".
Brandon
If you can put multiple triggers you might want to try putting all the letters in that box so it would work sort of like VS
Samuel
How would you add every single possible letter in the alphabet to it then? ;-)
Claus Jørgensen
+3  A: 

These bugs may be of interest to you:

A. Allow more character triggers as @Samuel said (fixed in 3.4 onwards):

https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157

B. Allow content assist everywhere automatically (not fixed):

https://bugs.eclipse.org/bugs/show%5Fbug.cgi?id=101420

Scobal
So a 4½ year old bug that would make Eclipse work like Visual Studio, isn't fixed yet? Any ideas why they postponed a feature who imo. is more important than anything else they done the last 4 years.
Claus Jørgensen
There maybe another bug open for it that I missed... I think it's a feature eclipse should probably have too.
Scobal
So I think the answer is that the feature doesn't exist and it's a bug?
Brandon