2 回答

TA貢獻1853條經(jīng)驗 獲得超6個贊
解決方法如下:
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選中就可以了。

TA貢獻1805條經(jīng)驗 獲得超9個贊
- 2 回答
- 0 關注
- 1663 瀏覽
添加回答
舉報