Eclipse/Java 代码完成不起作用 [英] Eclipse/Java code completion not working
问题描述
我已经下载、解压并安装了 Eclipse 3.4.2 和一些插件(值得注意的是,EPIC、Clearcase、QuantumDB、MisterQ).
I've downloaded, unzipped and setup Eclipse 3.4.2 with some plugins (noteable, EPIC, Clearcase, QuantumDB, MisterQ).
现在我发现当我编辑 Java 项目时,代码补全不起作用.如果我输入 String.
并按 ctrl+space 一个弹出窗口会显示No Default Proposals",底部的状态栏会显示No completions可用".
Now I find when I'm editing Java projects the code completion is not working. If I type String.
and press ctrl+space a popup shows "No Default Proposals" and the status bar at the bottom shows "No completions available".
有什么想法吗?
推荐答案
在Windows >"中尝试恢复默认选项首选项 >爪哇>编辑器内容辅助 >高级
'
Try restoring the default options in 'Windows > Preferences > Java > Editor > Content Assist > Advanced
'
您在此首选项屏幕中看到的数据类型示例,但不一定是您当前拥有的数据.
An example of the kind of data you see in this preference screen, however not necessarily what you currently have.
(来自 Vadim 在这个 博客文章Eclipse (Mylyn) 中的内容辅助重复项":
如果有重复的 Mylyn 条目,请取消选中名称中不包含(Mylyn)
"的重复条目)
(From Vadim in this blog post " Content Assist Duplicates in Eclipse (Mylyn)":
if have duplicate Mylyn entries, uncheck the duplicate entries that do not contain "(Mylyn)
" in their name)
Eclipse 帮助页面 定义了要恢复的默认列表:
The Eclipse help page defines the default list to restore:
选择默认"内容辅助列表中包含的提案种类:
Select the proposal kinds contained in the 'default' content assist list:
- 其他 Java 提案,
- SWT 模板提案,
- 模板提案,
- 类型提案
这篇关于Eclipse/Java 代码完成不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!