1. 设置代码自动提示
默认的是ctrl+space,与系统的切换输入法冲突了,于是改成Alt+/,when下拉框选择In dialog and windows;并且勾选Include unbound commands。
2. 代码提示的加强
window --> preference --> Java --> Editor -->Content Assist
在选项Auto activa trigger for java 的输入框中输入
.abcdefghijklmnopqrstuvwx
应用并确定
3.其它
如果设置还不能用
alt+/ 提示No Default Proposals
window->Preferences->Java->Editor->Content Assist->Advanced
上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other Java Proposals 选项打上勾就可以了。