一般情況下alt+/有代碼提示作用,還有代碼提示的快捷代碼也不是alt+/,因此要恢復代碼提示用alt+/.需要做兩件事. 在 Window - Preferences - General - Keys 內(nèi) 1、把word completion的快捷鍵設置alt+C 2、把Content Assist的快捷鍵由ctrl+space改成alt+/
如果還是不提示,極有可能是提示功能被關(guān)了. 如下: 1、菜單window->Preferences->Java->Editor->Content Assist->Enable auto activation 選項要打上勾 2、window->Preferences->Java->Editor->Content Assist->Advanced 上面的選項卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other Java Proposals 選項打上勾就可以了。
|