Eclipse 2021-09 代码完成未显示所有方法和类 [英] Eclipse 2021-09 code completion not showing all methods and classes
问题描述
在我将 eclipse 2021-06 更新到 2021-09 之前的几天,它的代码完成将不会显示所有方法和类.例如,如果我输入 frame.setS
,那么它不显示默认提案.
Hi some days before I updated my eclipse 2021-06 to 2021-09 and after that its code completion will not show all the methods and classes. for example if I type frame.setS
, then it is showing no default proposals.
但是同时当我输入 frame.setC
并按 ctrl+space 时,它正在工作 这是
But At the same time when I type frame.setC
and press ctrl+space, it is working This is the
也在我的设置中检查所有内容.
Also in my settings everything is checked.
我在网上搜索,发现了许多堆栈溢出问题,我尝试了答案.但是没用
I searched the web and found many stack overflow questions and I tried the answers. But it didn't work
我删除了 .metadata
文件夹并卸载并重新安装了 5 次 eclipse.
I deleted the .metedata
folder and uninstalled and reinstalled eclipse for 5 times.
我尝试从安装程序和 zip 安装 eclipse.
I tried installing eclipse from installer and zip.
这是一个错误还是什么.
Is this a bug or something.
我还从 eclipse 市场安装了 java 17 插件.
I have also installed the java 17 plugin from eclipse marketplace.
推荐答案
在 Eclipse 2021-09 (4.21) 中,java.awt.*
的所有内容默认在内容辅助中被过滤掉.
In Eclipse 2021-09 (4.21) everything of java.awt.*
is filtered out in the content assist by default.
要禁用此默认过滤器,请转到首选项(窗口 > 首选项;在 macOS 中的应用程序菜单中)Java >外观 >输入过滤器并取消选中复选框java.awt.*
.
To disable this default filter, go to the preferences (Window > Preferences; in macOS in the application menu) Java > Appearance > Type Filters and uncheck the checkbox java.awt.*
.
我已将其报告给 Eclipse,并且已在两周内修复,因此它将在下一个版本 Eclipse 2021-12 (4.22) 中发布2021 年 12 月 8 日(在从 M2 开始的里程碑版本中也更早):
I reported it to Eclipse and it has been fixed within two weeks, so it will be in the next release Eclipse 2021-12 (4.22) that will be released on December 8, 2021 (and also sooner in the milestone builds starting with M2):
- Eclipse bug 576549 - [content assist] Missing proposals in Swing, etc. because of java.awt.* type filter enabled by default.
这篇关于Eclipse 2021-09 代码完成未显示所有方法和类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!