Ctrl-Space in Eclipse without Pressing Ctrl-Space

Eclipse

Eclipse Problem Overview


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.

Eclipse Solutions


Solution 1 - Eclipse

These bugs (and a solution if you use Eclipse >3.4) 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 add the characters below to content assist in Preferences

Change the default in Auto activation triggers for Java to ._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

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

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

Solution 2 - Eclipse

What works:

Change the Auto activation triggers to .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_

You're unlikely to type anything else to get assist started.

Solution 3 - Eclipse

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

You will probably want to set the delay to 0.

Solution 4 - Eclipse

Also to make Auto Complete work in XML files do the following changes in Preferences -> XML -> XML Files -> Editor -> Content Assist

Under Auto Activation section, provide the following values

  1. Make Auto activation delay (ms): 0
  2. Prompt when these characters are inserted: <=:._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

Following screenshot explains the same

enter image description here

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
QuestionBrandon O&#39;RourkeView Question on Stackoverflow
Solution 1 - EclipseMark PopeView Answer on Stackoverflow
Solution 2 - EclipseAstiView Answer on Stackoverflow
Solution 3 - EclipseYuval AdamView Answer on Stackoverflow
Solution 4 - EclipseRajaraman SubramanianView Answer on Stackoverflow