Ctrl Space Not Working in Eclipse Helios on Win 7

2020-06-02 14:18发布

I have shifted by Dev Env recently to Eclipse Helios on Windows 7. After that the Ctrl + Space Content Assist feature is not working. I found out that that key option is utilized by Language Settings. I have tried disabling it. But it still doesn't work in Eclipse.

Any help is much appreciated.

标签: eclipse
12条回答
聊天终结者
2楼-- · 2020-06-02 14:34

This is how I fixed my problem on Ubuntu 12.04 regardless of the eclipse version. My 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.

查看更多
疯言疯语
3楼-- · 2020-06-02 14:41

I have seen a similar problem in Eclipse Juno (version 4.2.0).

Since you have already tried Eclipse/Java code completion not working, I would check to see if there are any key conflicts. Go to Window -> Preference -> General -> Keys. In the filter box, replace the light gray "type filter text" with the word "Content"; the first item should be "Content Assist." Select it. It should have nothing in the Conflicts box in the lower right-hand portion of the screen.

If you have no conflicts, then it is likely that there is another program, outside of Eclipse, that is binding to Ctrl + Space.

I worked around this with an ugly solution. I copied the Content Assist. In the Binding field, I entered held down the Ctrl + Alt keys and pressed space. This restored the Content Assist function, but it required a brain remap when I am using one machine.

查看更多
男人必须洒脱
4楼-- · 2020-06-02 14:43

Configure Eclipse’s content assist, go “Preferences>Java>Editor>Content Assist>Advanced“. Make sure “Other Java Proposals” is ticked.

http://www.mkyong.com/java/content-assist-ctrl-space-is-not-working-eclipse/

查看更多
贼婆χ
5楼-- · 2020-06-02 14:47

This was solution for me to get rid of windows key shortcuts:

  1. Go to Start > Type in regedit and start it
  2. Navigate to HKEY_CURRENT_USER/Control Panel/Input Method/Hot Keys
  3. Select the key named: 00000070 for the Chinese (Traditional) IME - Ime/NonIme Toggle hotkey 00000010 for the Chinese (Simplified) IME - Ime/NonIme Toggle hotkey
  4. In the right sub-window, there are three subkeys. Key Modifiers designate Alt/Ctrl/Shift/etc and is set to Ctrl (02c00000). Virtual Key designates the finishing key and is set to Space (20000000).
  5. Change the first byte in Key Modifiers from 02 to 00
  6. Change the first byte in Virtual Key from 20 to FF
  7. Log off and log back on. I don't think it's necessary to restart.
  8. Do not change the Hot keys for input languages in Control Panel, unless you want to do this all over again.

https://superuser.com/questions/327479/ctrl-space-always-toggles-chinese-ime-windows-7

查看更多
仙女界的扛把子
6楼-- · 2020-06-02 14:48

This is what solved my problem.

Goto Control Panel -> Clock, Language and Region -> Change keyboards or other input methods -> Change keyboards... -> Advanced Key Settings. For some reason I had ctrl + space set as Key sequence for language hot keys. I changed them to something else and rebooted.

Make sure to reboot because it did not work for me without the reboot.

查看更多
再贱就再见
7楼-- · 2020-06-02 14:48

@Polac - Thx. That's what fixed it for me. I'd hit ctrl+space and I'd get a popup for chinese character selection. I have Windows 7 so for me it was: Control Panel -> Region and Language -> Keyboards and Languages tab -> Change keyboards... button -> Advanced Key Settings tab

Be warned, its stubborn. I tried to just clear them, but as soon as I applied the settings they reset back to using the original key bindings. If I change the key binding to something obscure they still reset sometimes. It's annoying. Maybe its just my OS installation that's goofed, but it could be a Microsoft bug.

Didn't need Chinese on my system, so I removed it as an installed language in the first tab and that finally got rid of the hardcoded Chinese key bindings.

查看更多
登录 后发表回答