content assist does not work in Eclipse

Dims picture Dims · Oct 29, 2012 · Viewed 7.8k times · Source

When I am typing Ctrl-Space in Java file in Eclipse June, I am getting "no proposals". Meanwhile, if I do Edit->Content Assist->Java Proposals I have normal proposals list.

I.e. default proposals are not Java by some reason.

What it can be and how to setup?

Answer

AlbeyAmakiir picture AlbeyAmakiir · Oct 30, 2013

This happened to me at some point when I upgraded to Eclipse Kepler. Go to your Preferences. The appropriate page should be Java -> Editor -> Content Assist -> Advanced.

There are two lists of proposal types. Checking a type in the first list allows that proposal to appear automatically when it detects you pressing the trigger key. If it can't find any assist options in any of the checked proposal types, the Content Assist box will not appear.

Checking a type in the second list allows that proposal type to appear in the Content Assist box when it is already on screen, accessed by pressing the command to cycle the current proposal type. You can even change the order of appearance.

To solve your problem, at the very least, make sure Java Proposals checked in the first list (Technically, you can have it checked in only the second, but that means you'd need to manually bring up Content Assist and cycle to Java each time). Once checked, it should be automatically chosen as the default Content Assist for .java files.