eclipse的代码提示功能不好使了,Alt+/ 这么也不给提示,打对象.也点不出方法来。
解决方法如下:
1、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打上勾
2、windows-->preference-->workbench-->keys 下设置Content Assist 的快捷键
3、window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other Java Proposals 选项打上勾就可以了
4、eclipse中本身提供了一些很方便的代码补全模板,如输入sysout后 按 Alt+/ eclipse就会自动帮你生成System.out.println();,这些模板的查看位置在window->Preferences->Java->Editor->Templates中,列出了一 些常用的代码模板。如果在使用中无法完成代码补全功能,可以对eclipse进行一下设置 window->Preferences->Java->Editor->Content Assist->Advanced 中把 Template Proposals选中就可以了。
[b]注意:要选择非(Mylyn)的。[/b]
解决方法如下:
1、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打上勾
2、windows-->preference-->workbench-->keys 下设置Content Assist 的快捷键
3、window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other Java Proposals 选项打上勾就可以了
4、eclipse中本身提供了一些很方便的代码补全模板,如输入sysout后 按 Alt+/ eclipse就会自动帮你生成System.out.println();,这些模板的查看位置在window->Preferences->Java->Editor->Templates中,列出了一 些常用的代码模板。如果在使用中无法完成代码补全功能,可以对eclipse进行一下设置 window->Preferences->Java->Editor->Content Assist->Advanced 中把 Template Proposals选中就可以了。
[b]注意:要选择非(Mylyn)的。[/b]
本文详细介绍了当Eclipse的代码提示功能失效时的解决步骤,包括启用自动激活选项、设置快捷键、调整高级设置等内容,并提供了如何正确使用代码模板的方法。
970

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



