Problem
Content Assist (Ctrl + Space) is not working in my Eclipse IDE version 3.3. I have two Eclipse IDE installed, both in my laptop and personal desktop computer. However my laptop Eclipse 3.3’s content assist feature is working perfectly, but not my personal desktop computer. Every time, when i pressed on the Ctrl + Space combination keys, Eclipse just show me nothing…it’s drive me crazy. How can such a killer feature is disabled in my Eclipse IDE !!!?
I start Googling online, this problem is happened since Eclipse IDE version 3.2, many people suffer and many solutions come out to quick fix on it. Sadly, there is no final solution for it, some may work and some may not.
Solution
Here i summarized few solutions that may fix it.
1. New Project WorkSpace
Create a totally new workspace and import your existing project. Remember check “Copy projects into workspace” to copy all your existing work to new workspace.
2. Content Assist Configuration
Configure Eclipse’s content assist, go “Preferences>Java>Editor>Content Assist>Advanced“. Make sure “Other Java Proposals” is ticked
3. No Hijacked
Make sure (Ctrl + Space) combination key is not hijacked by other application. For examples, My desktop computer (Ctrl + Space) combination key is hijacked by my Windows text input feature. I enabled it for Chinese and English language, one of the text input combination key is using (Ctrl + Space), so, conflict happened.
3. Regional and Language Options
Make sure “regional and language options” is in English language. For example, Windows, Control panel –> Region and language options –> Advance tab –> Language for non-unicode program –> Make sure English (United States) is selected, others may not work, no idea why like this, but it worked.
It is helpful for me. Thank you @mkyong
just goto content assist > favourite and add the java.io.PrintStream . and apply this
I chose the second method and it worked, thanks a lot!
it’s already ticked but it’s not coming up for me in TestNG.xml while using <parameter> tag.
Thanks it helps .
“Preferences>Java>Editor>Content Assist>Advanced“. Make sure “Java Proposals” is ticked
Thanks it helps .
“Preferences>Java>Editor>Content Assist>Advanced“. Make sure “Other Java Proposals” is ticked
Thank you…
It’s working fine..
Hi I am using the eclipse Java Photon . i don’t have that option “Other Proposal” Can you please help me .
Thanks a lot,It worked
Thanks! Now it works!
thank you, i change the workspace and it works
sir i run soap api on google ,it run but in baidu it is not run
“Follow him on Twitter, or befriend him on Facebook or Google Plus.”
Can you change it to “Follow me…” this statement alone is in third person context 🙂
on linux machine check ibus settings – you can use dconf-editor and search for ibus->general->hotkey
Thanks a lot
Thanks it’s working fine – “Preferences>Java>Editor>Content Assist>Advanced“. Make sure “Other Java Proposals” is ticked
Thanks finally solution 2 fixed my issue 🙂
Thank you so much!!! Solution #3 worked for me.
Thank You!!
Thank you! solution 2 worked for me… 🙂
thanks,, option 1 works for me
Option 3 solved my problem, thanks
Thanks finally solution 2 fixed my issue 🙂
Thank you for your good solutions (as always). I also had a problem with referenced Maven Project. Types from the referenced project were missing. I just closed and opened this project 🙂
Yea… thanks
Thanks, this fix is still working for Eclipse SDK:
– Window > Preferences > Java > Editor > Avanced
– I set ticked the following (I’m not sure which one did the trick):
>> Java Non-Type Proposals
>> Java Proposals
>> Java Type Proposals
Thanks. You saved my time.
thank youuuuuu number 2
Thanks, thanks, thanks
Thanks you #2 is perfect, it solved my problems
Thanks, #2 solved my problem
2. Content Assist Configuration ..works perfectly …Thanks man cheers 🙂
thnk u!!!!!!!!!
Thanks dude.
Thank you, very very much! You saved my life!
Thanks alot
Solution #2 helped me.
Thank you very much! I just have same problem with you.
Thanks……………..it is predicting now.
Thanks a lot. The “Content Assist Configuration” worked for me.
Thanks guy, the first solution worked for me =)
You are outstanding!!!!it really helped me!!
thx.. it works..
Restore Default – also good
In my case, I had a small utility that overrode my ctrl+space to put windows always on top (http://www.howtogeek.com/howto/13784/keep-a-window-on-top-with-a-handy-autohotkey-script/).
Disabling it fixed the problem. Whew, I’m glad I have content assist back!
Thanks a lot for providing individuals with remarkably memorable possiblity to read articles and blog posts from here. It’s usually so enjoyable and stuffed with fun for me and my office friends to search your blog at the least 3 times a week to find out the newest things you have got. And definitely, I’m at all times satisfied for the perfect hints you serve. Selected 3 facts in this article are completely the most efficient we have ever had.
Thanks for this!
I was having a similar problem, and it would give me these cryptic errors that Google knew nothing about. Fixed it by resetting my Content Assist > Advanced stuff to default and restarting Eclipse 🙂
I did a fresh install of juno “classic sdk” and was working on a workspace I had created previously with juno “Java EE” and my content assist was not working. I found that going into the java -> editor -> content assist -> advanced as noted and then checking one, saving, then going back in and restoring defaults was all that was needed.
Long story short, just bumping the config to something else and back to defaults seemed to fix mine. I really didn’t need the “java non type” clicked at all in the end.
Wayne
Thank you…..so much…..!!!
Suggestion no. 2 worked for me….:)
I can’t just make a new workspace because it’s over a full day’s worth of work.
My ctrl-space is not working for JSF XHTML files. My laptop broke. It was fine on my old laptop, but it’s not working on the new laptop. This is making it so I can’t do my job… It’s a complex system and autocomplete is really required here! :/
Thank you for such a useful and timely advise (I was fed up with Content Assist stumbling every 30-40 lines of code in Eclipse-based Spring Tool Suite)!
In addition I found that going this way: Window->Preferences->Java->Editor->Content Assist->Insertion (Completion inserts / Completion owerwrites) ‘Press ‘Ctrl’ to toggle while content assist is active’ I can do the same choice as in Intellij IDEA while choosing whether to inserts or overwrite while editing my code (I can press either Enter OR Ctrl-Enter and voila!)
My JRE System Library was “unbound”. I set the path and everything works now!
I removed all the other languages and have just the english US in the settings
still when i do ctrl+space the language bar moves to chinese and on second time i do ctrl +space i get the content assist 🙁
mkong the other thing i am noticing is that every time i do ctrl+space my language bar move to chinese all time i dont know what to do with this
Delete Chinese input, or change the key binding.
Its working thanks i deleted all the other languages and kept just the english US
i am using Eclipse Java EE IDE for Web Developers.Version: Indigo Service Release 2 Build id: 20120216-1857 my content assist does not work i tried all that is mentioned first thing it does not have other java proposals listed in the prefrences i am using a latitude dell laptop on windows 7 please help
thanks so much!
My problem was the email was changed. Restoring the language to English (from language bar) solved the problem.
We just had a hard to find issue with CTRL-Space: Content Assist worked on e. g. String or something from java.util, but not from a few specific packages that were our own. Content Assist was only showing the inherited methods of java.lang.Object.
Solution:
Somehow a “type filter” was set, via Preferences->Java->Appearance->Type Filters. Sometimes these get set (and promptly forgotten) when you are overwhelmed by the number of classes that CTRL-SHIFT-T (“Open Type”) gives you.
This guy had the same problem:
http://www.eclipse.org/forums/index.php?t=msg&th=80401/
Thanks a ton! This was exactly my issue. I struggled with the content assist settings for hours before finding this suggestion.
Hey I’m using oracle enterprise pack for eclipse so there I am unable to use CTRL + Space.
please whatever solution you are providing, explain it deeply because I’m still not getting.
Thanks
Mayur
Thank you Nicolai!!! i have the same problem
This was a real time-saver. Thanks.
Thanks a lot… solution 2 worked for me in RAD 7.0.0.6…
Thx Man! the second solution worked for me!
the whole thing is about “content assist”, may not need so much uttering. search “keys” in “preferences”, and search “content assist” in “keys” would just do the job.
thank …
Hi
I tried all options mentioned by everyone, But still could not fix it.
give my way a try. search “easoncxz” on this page to find it. the way allows you to be sure by your own examination.
In my case it was point 2)
Thank you and have a good day…
Thanks! Windows Language Program was hijakcing and creating problems
Thanks, I came here for JavaScript content assist. after following your steps its worked for me in JavaScript – jQuery.
Thanks again.
If your project is configured as Maven project, Maven -> Update Project Configuration may also help. It helped for me on Eclipse Indigo.
Are you installed Maven-Eclipse related plugin?
Ctrl + space was hijacked here cause of the program ‘maConfort’ running the back.
Fixed now, thanks for the help.
I am using Eclipse 3.7.1(Indigo) and I want to say 2-nd proposal was very helpful for me.
thanks!!!!!
thanks dude u comment was very useful in finding the fix for my problem again in Indigo
thank you so much bro 🙂
respect froum Turkey
Option 3 did the trick for me… thank you..
I downloaded Indigo & my content assist was not working, your second option helped me. thanks for the help & sparing your time to share with us.
Thank you!
2nd solution worked for me!!! your the man!!!
I cannot see “Other Java Proposals” in “Preferences>Java>Editor>Content Assist>Advanced”. Can any body help me with that ?
I just upgraded to Java 3.7 (Indigo) & my content assist kinda broke. But after applying your – ‘Content Assist Configuration’ suggestion it was brought back to life.
Thanks a ton!
Eclipse 3.7, i haven’t upgrade yet, will give it a try soon 🙂
Same here. It had been troubling me for days.
I knew it was something to do with preferences so I kept clearing out my workspace and reimporting my preferences. But now I know that it was just that eclipse was forgetting to include java proposals in the content assist…
Kinda wacky, but at least I know how to fix it now.
Thanks mkyong.
Check the lib of your project. It may be that you have include two such jar files in which same class is available or say one class in code can be refrenced in two jar files. In such case also eclipse stops assisting code as it is totally confused.
Better way to check this is go to the file where assist is not working and comment all imports there, than add imports one by one and check at each import if code-assist is working or not.You can easily find the class with duplicate refrences.
It worked, You really rock Mona….Really you thrown some light in to my eclipse editor..jars including the same class files , Eclipse stops assisting.
Thanks man,
Control Panel-> Language settings worked for me.
Thanks
Thank you!
My content assists used to work fine, but some reason it broke.
This worked for me.
Close all the project from navigator
and close the eclipse.
after few mins open the eclipse, then open the first project which does not have any
dependency on any other project, then next one, which depend on the first and so on.
haha… it’s funny, thanks for sharing your experience.
Second solution worked for me.
Thanks a lot.
Thanks..
First solution worked for me
Thanks!
The first solution fixed the problem. This works for other versions of Eclipse( newer versions), but the menus are a bit changed.
lol fu***ng msn plus!!! 😀
ctrl+space == hide!
thank you!
messenger was using this key combination!
The 3rd solution saved me,
I had installed MSN plug in called messenger plus and it used ctrl+space to lock the messenger. so i unchecked that feature and now eclipse works again.
Thanks for the tip!
Thanks your tip
Thanks checking “Other Java Proposals” enabled the Content assist for me.
you have the shorcut to block the msn only, desactivate and fix ;D
Ya.. many programs are using the content + space key :), sound it’s a popular combination ~
How to use code assist in views (MVC) when code assist don’t list variables defined in another file? Does exist a comment tag, that do “force insert into code assist list” ? Thanks.
Sorry, cant get you, would to mind to elaborate more ?
Thanks a lot. Solution 2 worked and a lot of time.
Thanks, solution 2 worked perfectly. You saved many hours of pain 🙂
Thnx mate…
2) Go Preferences>Java>Editor>Content Assist>Advanced
P.S Make sure “Other Java Proposals” is ticked
worked for me … u saved my life …
thx it works. i checked everything in
Preferences/Java/Editor/Content Assist/Advanced
and the problem is fixed 🙂
Java content assist inside jsp pages does not work in eclipse.
I am using :
Eclipse Java EE IDE for Web Developers.
Build id: 20090621-0832
This used to work properly when I was using the older eclipse 3.1.1
Can anyone help?
Thanks.
you rock
If you use MSN plus, it uses the ctrl+space for blocking the Messenger itself. In preferences and options, go to Messenger, Block Messenger, and disable block messenger. This will allow you to use ctrl+space for the content assist at your Eclipse programm
Sometimes it doesnt work because the regional langauge settings is not English(US)
exactly !!! thanks for the tips
Hmmm, it took the URL as a link for my name here it is again:
http://www.ipros.nl/2008/12/20/get-content-assist-working-in-eclipse-in-jsp-java-projects/
Best,
Patrick
Look at the attached URL to find out how to add content assist for JSP pages within a Java project.
Thanks. The first solution fixed my 3.3.