CaptainFuzzyFace
CaptainFuzzyFace

Reputation: 339

Eclipse Content Assist doesn't activate

I can get an empty box to appear by pressing Ctrl Space, but content assist won't pop up at all otherwise. I've read lots of answers here on this topic but none have helped.

I'm using...

Ubuntu 12.10 Eclipse Version: 3.8.0 Build id: I20120502-2000 Java openjdk-7-jre 7u15-2.3.7-0ubuntu1~12.10 Execution Environment JavaSE-1.7 (java-6-openjdk)

I've checked the Preferences settings and they seem reasonable. I've checked the project build settings and they look ok. I don't have any compile errors (and only a few lines of code.)

Any suggestions as to what my next move is?

Upvotes: 12

Views: 33547

Answers (4)

Sergen Çetin
Sergen Çetin

Reputation: 1

When you started the Eclipse, the content assist (ctrl+space) may not work on the opened resource files from the previous session (e.g. main.cpp). Try to close those files and reopen them. Control whether (ctrl+space) works or not again.

Upvotes: 0

Syamkrishnan Ck
Syamkrishnan Ck

Reputation: 193

Go to Preferences > Java > Editor > Content Assist and paste "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz." (note the dot after z) into the "Auto activation triggers for Java:" field.

Upvotes: 12

elzapp
elzapp

Reputation: 1991

I had this problem myself, as it turns out, my window manager (XFCE), or something, traps space. So mapping it to something else than ctrl+space solved it for me.

Upvotes: 4

Maroun
Maroun

Reputation: 95958

WindowsPreferenceGeneralKeysRestore Default

Another thing you can check:

WindowsPreferenceJavaEditorContent AssistAdvancedJava Proposals should be checked.

This should fix the problem.

Note that you don't have to restore the default, make sure that CTRL + SPACE is not overridden by another operation.


As mentioned on the comments, sometime creating a new project workspace fixes this problem.. for some reason.

Upvotes: 21

Related Questions