`
renwolang521
  • 浏览: 22892 次
  • 性别: Icon_minigender_1
  • 来自: 西安—>北京
社区版块
存档分类
最新评论

eclipse的代码提示功能

阅读更多
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选中就可以了。
  注意:要选择非(Mylyn)的。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics