42
votes

My problem is that the content assist window won't pop up after clicking Ctrl + Space. I checked my shortcuts and the content assist is bound to Ctrl + Space. Sometimes the window automatically pops up making suggestion after typing dot e.g., but this won't happen when using the keys combination.

Eclipse version:

Eclipse Java EE IDE for Web Developers.

Version: Kepler Service Release 1 Build id: 20130919-0819

My OS is Ubuntu 12.04 if that matters.

11
What development environment are you in? Java, CDT, PyDev? - aruisdante
Also could be a duplicate of this: stackoverflow.com/questions/17358312/… - aruisdante

11 Answers

50
votes

In my case; Window>Preferences>Java>Editor>Content Assist>Advanced

Make sure Select the proposal>Template Proposals,SWT Template Proposals,Java Proposals ,Content assist cycling>Template Proposals,SWT Template Proposals,Java Proposals is ticked.

39
votes

I managed to fix it finally. The problem was that the ibus was overriding the shortcut so I deleted this shortcut configuration.

Type ibus in the dash: Search for ibus

Then select Keyboard Input Methods. From there click on the first three dots next to the Enable or disable textfield. This windows should appear: Shortcuts

If there is something bound to Ctrl + Space simply delete it.

35
votes

Go to Windows > Preferences > Java > Editor > Content Assist > Advanced > select all Java only. If you select all, then multiple occurrence of same instance would be shown in Suggestion list. which might be annoying some times.

enter image description here

10
votes

For that Go to

Eclipse --> Windows --> Preferences --> Java --> Editor --> Content Assist --> Advanced --> select all Java & Java Type Proposals.

and check mark : Java Proposals(Code Recommenders)

8
votes

To enable Ctrl+Space.

  1. Go to Control Panel --> Region and Language --> select Keyboard and Languages tab --> Change Keyboard button --> select General tab --> Under Installed Services --> Remove all languages except English(United States). click apply and ok.

  2. Eclipse --> Windows --> Preferences --> Java --> Editor --> Content Assist --> Advanced --> select all Java & Java Type Proposals.

  3. Eclipse --> Windows --> Preferences --> General keys --> Type Content Assist in right side search box --> Select command Content Assist --> click on Restore To Default --> Apply --> ok

Now you are ready to use ctrl + space feature for content assist.

6
votes

Earlier I was also facing the same issue : I just followed below steps :

  1. Go to Windows --> Preferences --> Java --> Editor --> Content Assist --> Advanced --> select all Java & Java Type Proposals.

  2. Click on Apply and close it.

  3. Restart the eclipse.

enter image description here

1
votes

It happened to me also, What I have done is change the workspace folder to Another folder and problem solved!

0
votes

This issue happened to me and none of the stack solutions seemed to resolve it. I finally figured that some other windows task was stealing my hotkey press. If nothing else works, I recommend that you downloaded a free software 'Windows Hotkey Explorer' that reported the registered hotkeys.

In my particular situation, I found ctrl+space was seized by 'blackboard collaborate' (a unpalatable java application for webcasts used by some of my courses).

I closed Eclipse killed all java processes (which included blackboard). Restarted eclipse and my autocomplete was back!

(Note: Hotkey Explorer was incredibly buggy and crashed every time I used it. I was able to get the information I needed before it crashed though so it was useful. Another (shareware) application that I didn't use but noticed online is: Hotkey Commander.

0
votes

Ctrl+space was not working in my eclipse.Somehow it got disabled.

I have tried many options and didnt worked any options.

Finally this was work out

Go to Preferences > Java > Editor > Content Assist > The "Auto activation triggers for Java:" field. Paste "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz." (note the dot after z) .This is the best solution and no need to even press ctrl+space.

0
votes

Though I have eclipse proposal settings configured properly it was not working for me. In my case Ctrl+space key combination was hijacked by another background running process (I was running AllwaysOnTop utility for windows). it worked after exit that process. :)

0
votes

I was facing the same issue. If you use OS X Eclipse Ctrl+Space shortcut can be interfering with OS X system's "Selecting previous input source" using Ctrl+Space shortcut as default.

It is necessary to edit System Preferencies/Keyboard/Shortcuts/Input Source and uncheck the "Selecting previous input source" or change the shortcut on something else. Eclipse should work after that even without restart.