关于eclipse没有代码提示解决方法

来源:互联网 发布:学歌软件 编辑:程序博客网 时间:2024/06/04 18:39
       今天开发过程中发现eclipse的代码提示功能不好使了,Alt+/ 这么也不给提示,打对象.也点不出方法来。
解决方法如下:

1、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打上勾


       2、windows-->preferences-->General-->keys 下设置Content Assist 的快捷键


       3、window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 OtherJava Proposals 选项打上勾就可以了

4、eclipse中本身提供了一些很方便的代码补全模板,如输入sysout后 按 Alt+/ eclipse就会自动帮你生成System.out.println();,这些模板的查看位置在window->Preferences->Java->Editor->Templates中,列出了一些常用的代码模板。如果在使用中无法完成代码补全功能,可以对eclipse进行一下设置 window->Preferences->Java->Editor->Content Assist->Advanced 中把 Template Proposals选中就可以了。

原文地址:http://blog.sina.com.cn/s/blog_4c451e0e0100h0cm.html