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

来源:互联网 发布:新东方四级怎么样知乎 编辑:程序博客网 时间:2024/05/22 05:07

http://rybhgr.blog.163.com/blog/static/15598155200961323054342/

 

 

今天开发过程中发现eclipse的代码提示功能不好使了,Alt+/ 这么也不给提示,打对象.也点不出方法来。 

  baidu一下问题解决

  解决方法如下:

 

  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选中就可以了