Ctrl Space 在 Win 7 上的 Eclipse Helios 中不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5509726/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:05:44  来源:igfitidea点击:

Ctrl Space Not Working in Eclipse Helios on Win 7

eclipse

提问by Dhanush Gopinath

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.

我最近通过 Dev Env 转移到 Windows 7 上的 Eclipse Helios。之后 Ctrl + Space 内容辅助功能不起作用。我发现语言设置使用了该关键选项。我试过禁用它。但它在 Eclipse 中仍然不起作用。

Any help is much appreciated.

任何帮助深表感谢。

回答by iamronak

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

配置 Eclipse 的内容辅助,转到“Preferences>Java>Editor>Content Assist>Advanced”。确保勾选“其他 Java 提案”。

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

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

回答by VonC

In my case nothing happens after pressing Ctrl+Space. Right now I have set a different short cut for the same and solved

在我的情况下,按 Ctrl+Space 后没有任何反应。现在我已经为相同的问题设置了不同的捷径并解决了

Check your "Keys" preferences: maybe the Content Assist" shortcut has been overridden by another command which would alsouse Ctrl+Space.
That could happen with the installation of a new plugin, coming with its own set of commands and shortcuts: the bug 303894for the XTextplugin is a good example.

检查你的“钥匙”的偏好:也许内容辅助”快捷方式已被其他命令,它会覆盖利用Ctrl+ Space
这可能与安装新插件的发生,有其自己的一套命令和快捷的未来:在错误303894的该XTEXT插件是一个很好的例子。

回答by Adrian

You probably have another application (in systray) that uses Ctrl+Space for something else. In my case I have a small utility which when I press Ctrl+Space makes the active window on top.

您可能有另一个应用程序(在系统托盘中)将 Ctrl+Space 用于其他用途。就我而言,我有一个小实用程序,当我按 Ctrl+Space 时,它​​会使活动窗口位于顶部。

The solutionfor you would be to (1)exit that application which overrides the keys or (2)in Eclipse change Ctrl+Space to some other set of keys.

您的解决方案(1)退出覆盖这些键的应用程序或(2)在 Eclipse 中将 Ctrl+Space 更改为其他一些键集。

回答by Karitsa

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

这是我摆脱 Windows 快捷键的解决方案:

  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.
  1. 转到开始>输入regedit并启动它
  2. 导航到 HKEY_CURRENT_USER/控制面板/输入法/热键
  3. 选择名为的键: 00000070 用于中文(繁体)IME - Ime/NonIme 切换热键 00000010 用于中文(简体)IME - Ime/NonIme 切换热键
  4. 在右侧子窗口中,有三个子项。键修饰符指定 Alt/Ctrl/Shift/etc 并设置为 Ctrl (02c00000)。Virtual Key 指定完成键并设置为 Space (20000000)。
  5. 将 Key Modifiers 中的第一个字节从 02 更改为 00
  6. 将 Virtual Key 中的第一个字节从 20 更改为 FF
  7. 注销并重新登录。我认为没有必要重新启动。
  8. 不要在控制面板中更改输入语言的热键,除非您想重新执行此操作。

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

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

回答by davidhilton68

On my Ubuntu, Xfce, ctrl space was allocated to switch language on the iBus preferences (if you have this running, you will see the 'i' icon on the task bar, right click and choose preferences). To change this, bring up the IBus Preferences, on the General tab, see the "Enable or disable:" option, click the ellipses and provide a different keyboard assignment.

在我的 Ubuntu Xfce 上,ctrl 空间被分配用于在 iBus 首选项上切换语言(如果您正在运行它,您将在任务栏上看到“i”图标,右键单击并选择首选项)。要更改此设置,请调出IBus Preferences,在 General 选项卡上,查看“ Enable or disable:”选项,单击省略号并提供不同的键盘分配。

This sorted me out without need to restart Eclipse.

这使我无需重新启动 Eclipse 即可解决问题。

回答by Polac

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.

转到控制面板 -> 时钟、语言和区域 -> 更改键盘或其他输入法 -> 更改键盘... -> 高级按键设置。出于某种原因,我将 ctrl + space 设置为语言热键的键序列。我将它们更改为其他内容并重新启动。

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

确保重新启动,因为没有重新启动它对我不起作用。

回答by rajah9

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

我在 Eclipse Juno(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.

由于您已经尝试过Eclipse/Java 代码完成不起作用,我会检查是否有任何关键冲突。转到窗口 -> 首选项 -> 常规 -> 键。在过滤器框中,将浅灰色的“类型过滤器文本”替换为“内容”一词;第一项应该是“内容辅助”。选择它。屏幕右下方的“冲突”框中应该没有任何内容。

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

如果您没有冲突,那么很可能在 Eclipse 之外还有另一个程序绑定到 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.

我用一个丑陋的解决方案解决了这个问题。我复制了内容辅助。在绑定字段中,我输入按住 Ctrl + Alt 键并按下空格。这恢复了内容辅助功能,但当我使用一台机器时,它需要重新映射大脑。

回答by jeffreychi

!Screenshot of Eclipse Juno, I had the same problem, then I changed it to different key combination, then it works.1

!Eclipse Juno 的屏幕截图,我遇到了同样的问题,然后我将其更改为不同的组合键,然后它就可以工作了。1

enter image description here

在此处输入图片说明

回答by Anver Sadhat

I use eclipse indigoand had this problem. Creating a new workspace did not worked.

我使用 eclipse indigo并且遇到了这个问题。创建新工作区不起作用。

Go to Windows->preference->General->Keys->"Restore Default" - This fixed my issue

转到Windows->preference->General->Keys->"Restore Default" - 这解决了我的问题

Note that I just had English(US) on windows 7 [Control Panel-> Clock,Language and Region ->Change keyboard or other input methods-> Keyboards and Languages->change Keyboards...->General ==>Default language is English and Installed Services I just had English(US) alone

请注意,我在 Windows 7 上只有英语(美国)[控制面板-> 时钟、语言和区域-> 更改键盘或其他输入法-> 键盘和语言-> 更改键盘...-> 常规 ==> 默认语言是英语和已安装的服务 我只有英语(美国)

After doing this some you might need to restart the system if it does not fix.

执行此操作后,如果无法修复,您可能需要重新启动系统。

回答by Ivaylo Toskov

This is how I fixed my problem on Ubuntu 12.04regardless of the eclipse version. My problem was that the ibus was overriding the shortcut so I deleted this shortcut configuration.

这就是我在Ubuntu 12.04上解决问题的方法,而不管 Eclipse 版本如何。我的问题是 ibus 覆盖了快捷方式,所以我删除了这个快捷方式配置。

Type ibusin the dash: Search for ibus

键入的ibus在仪表板: 搜索 ibus

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

然后选择键盘输入法。从那里单击启用或禁用文本字段旁边的前三个点。这个窗口应该出现:快捷方式

If there is something bound to Ctrl + Spacesimply delete it.

如果有绑定到Ctrl + Space 的东西,只需将其删除即可。