设置如下:
1.windows->preferences->java->Editor->Content Assist中
Auto-Activetion标签下的Enable auto activetion选项要勾选上
其中的三个的值可以自己设定,一般为默认值.这里面有个时间的设定是为提示代码设定的显示时间。
2.window->Preferences->Java->Editor->Content Assist->Advanced
上面的选项卡Select the proposal kinds contained in the 'default' content assist list:
把 Other Java Proposals 选项打上勾就可以了。