编码的时候发现代码的自动提示突然不可用了,一个可以解决的方法:
Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced
「Select the proposal kinds contained in the 'default' content assist list」
把「Other Java Proposals」选项打钩,apply,提示出现了。这是Eclipse工具的问题。
本文介绍了一种解决Eclipse中代码自动提示失效的方法。通过调整Eclipse的设置,启用Other Java Proposals选项,即可恢复Java代码的自动提示功能。
Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced
「Select the proposal kinds contained in the 'default' content assist list」
把「Other Java Proposals」选项打钩,apply,提示出现了。这是Eclipse工具的问题。

被折叠的 条评论
为什么被折叠?