MyEclipse代码提示功能和自动提示功能

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: 中把 Java Proposals 选项打上勾就可以了。

另外要不按快捷键也能提示,解决方法如下:
打开 Eclipse  -> Window -> Perferences -> Java -> Editor -> Content Assist,在右边最下面一栏找到 auto-Activation ,下面有三个选项,找到第二个“Auto activation triggers for Java:”选项 

在其后的文本框中会看到一个“.”存在。这表示:只有输入“.”之后才会有代码提示和自动补全,我们要修改的地方就是这里。把该文本框中的“.”换掉,换成“abcdefghijklmnopqrstuvwxyz.”,
这样,你在Eclipse里面写Java代码就可以做到按“abcdefghijklmnopqrstuvwxyz.”中的任意一个字符都会有代码提示

 

 
不找借口失败,只找理由成功!
原文地址:https://www.cnblogs.com/qingfengzhuimeng/p/5063562.html