首页 > 解决方案 > How to enable auto-complete (intellisense) in Eclipse IDE for Java

问题描述

I have Eclipse 2019-09 and I’m working on a Java application using some Collection classes.

I needed to see all the available methods for the Map interface but when I pressed “Ctrl+Space”, auto-complete didn’t work. “No default proposals” message came up.

How can I enable IntelliSense for Java in Eclipse IDE?

标签: javaeclipse

解决方案


我在下面的文章中找到了解决此问题的解决方法。

Eclipse Java 自动完成功能不起作用

在 Windows 中:

Window->Preferences->Java->Editor->Content Assist->Advanced

在 MacOSX 中:

Eclipse->Preferences->Java->Editor->Content Assist->Advanced

然后,确保在顶部(默认内容辅助列表)和底部(内容辅助循环)部分中勾选以下选项。

Java Non-Type Proposals
Java Proposals
Java Type Proposals

在此处输入图像描述

在此处输入图像描述


推荐阅读