Ctrl + Space 对 Eclipse 的内容辅助不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23986750/
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
Ctrl + Space not working for content assist on eclipse
提问by Ivaylo Toskov
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.
我的问题是单击 后不会弹出内容辅助窗口Ctrl + Space
。我检查了我的快捷方式,内容辅助绑定到Ctrl + Space
. 有时输入 dot eg 后会自动弹出建议窗口,但使用组合键时不会发生这种情况。
Eclipse version:
日蚀版:
Eclipse Java EE IDE for Web Developers.
Version: Kepler Service Release 1 Build id: 20130919-0819
面向 Web 开发人员的 Eclipse Java EE IDE。
版本:Kepler Service Release 1 版本号:20130919-0819
My OS is Ubuntu 12.04 if that matters.
如果重要的话,我的操作系统是 Ubuntu 12.04。
回答by Ivaylo Toskov
I managed to fix it finally. The problem was that the ibus was overriding the shortcut so I deleted this shortcut configuration.
我终于设法修复了它。问题是 ibus 覆盖了快捷方式,所以我删除了这个快捷方式配置。
Type ibusin the dash:
键入的ibus在仪表板:
Then select Keyboard Input Methods. From there click on the first three dots next to the Enable or disabletextfield. This windows should appear:
然后选择键盘输入法。从那里单击启用或禁用文本字段旁边的前三个点。这个窗口应该出现:
If there is something bound to Ctrl + Spacesimply delete it.
如果有绑定到Ctrl + Space 的东西,只需将其删除即可。
回答by devcelebi
In my case; Window>Preferences>Java>Editor>Content Assist>Advanced
就我而言;窗口>首选项>Java>编辑器>内容辅助>高级
Make sure Select the proposal>Template Proposals,SWT Template Proposals,Java Proposals ,Content assist cycling>Template Proposals,SWT Template Proposals,Java Proposals is ticked.
确保选中提案>模板提案,SWT模板提案,Java提案,内容辅助循环>模板提案,SWT模板提案,Java提案。
回答by niranjan bagade
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.
转到 Windows > Preferences > Java > Editor > Content Assist > Advanced > 仅选择所有 Java。如果选择全部,则建议列表中将显示多次出现的相同实例。有时可能会很烦人。
回答by manishkdev
To enable Ctrl+Space.
启用 Ctrl+Space。
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.
Eclipse --> Windows --> Preferences --> Java --> Editor --> Content Assist --> Advanced --> select all Java & Java Type Proposals.
Eclipse --> Windows --> Preferences --> General keys --> Type Content Assist in right side search box --> Select command Content Assist --> click on Restore To Default --> Apply --> ok
转到控制面板 --> 区域和语言 --> 选择键盘和语言选项卡 --> 更改键盘按钮 --> 选择常规选项卡 --> 在已安装的服务下 --> 删除除英语(美国)之外的所有语言。单击应用并确定。
Eclipse --> Windows --> 首选项 --> Java --> 编辑器 --> 内容辅助 --> 高级 --> 选择所有 Java 和 Java 类型建议。
Eclipse --> Windows --> 首选项 --> 常规键 --> 在右侧搜索框中键入 Content Assist --> 选择命令 Content Assist --> 单击恢复为默认值 --> 应用 --> 确定
Now you are ready to use ctrl+ spacefeature for content assist.
现在您已准备好使用ctrl+space功能进行内容辅助。
回答by Umang Boriwala
Earlier I was also facing the same issue : I just followed below steps :
早些时候我也面临同样的问题:我只是按照以下步骤操作:
Go to Windows --> Preferences --> Java --> Editor --> Content Assist --> Advanced --> select all Java & Java Type Proposals.
Click on Apply and close it.
- Restart the eclipse.
转到 Windows --> 首选项 --> Java --> 编辑器 --> 内容辅助 --> 高级 --> 选择所有 Java 和 Java 类型建议。
单击应用并关闭它。
- 重新启动日食。
回答by Sidharth K.Burnwal
For that Go to
为此去
Eclipse --> Windows --> Preferences --> Java --> Editor --> Content Assist --> Advanced --> select all Java & Java Type Proposals.
Eclipse --> Windows --> 首选项 --> Java --> 编辑器 --> 内容辅助 --> 高级 --> 选择所有 Java 和 Java 类型建议。
and check mark : Java Proposals(Code Recommenders)
和复选标记:Java Proposals(Code Recommenders)
回答by Guy
It happened to me also, What I have done is change the workspacefolder to Another folder and problem solved!
这也发生在我身上,我所做的是将工作区文件夹更改为另一个文件夹,问题解决了!
回答by ThinkBonobo
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.
这个问题发生在我身上,似乎没有一个堆栈解决方案可以解决它。我终于发现其他一些 Windows 任务正在窃取我的热键按下。如果没有其他效果,我建议您下载一个免费软件“ Windows 热键资源管理器”,该软件会报告已注册的热键。
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).
在我的特殊情况下,我发现 ctrl+space 被“黑板协作”(我的一些课程使用的网络广播的令人讨厌的 Java 应用程序)占用了。
I closed Eclipse killed all java processes (which included blackboard). Restarted eclipse and my autocomplete was back!
我关闭 Eclipse 杀死了所有 java 进程(包括黑板)。重新启动日食,我的自动完成又回来了!
(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.
(注意:Hotkey Explorer 的错误令人难以置信,每次我使用它都会崩溃。我能够在它崩溃之前获得我需要的信息,所以它很有用。另一个我没有使用但在网上注意到的(共享软件)应用程序是:热键指挥官。
回答by priya
Ctrl+space was not working in my eclipse.Somehow it got disabled.
Ctrl+space 在我的 eclipse 中不起作用。不知何故它被禁用了。
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.
转至首选项 > Java > 编辑器 > 内容辅助 >“Java 的自动激活触发器:”字段。粘贴“ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz”。(注意 z 后面的点)。这是最好的解决方案,甚至不需要按 ctrl+space。
回答by Ashok Kumar Ithabathula
Though I have eclipse proposal settings configured properly it was not working for me. In my case Ctrl+space key combination was hiHymaned by another background running process (I was running AllwaysOnTop utility for windows). it worked after exit that process. :)
尽管我正确配置了 eclipse 建议设置,但它对我不起作用。在我的情况下,Ctrl+空格键组合被另一个后台运行进程劫持(我正在运行 Windows 的 AllwaysOnTop 实用程序)。它在退出该过程后工作。:)