天天看點

eclipse 代碼提示均無效的問題解決方案

一般情況下alt+/有代碼提示作用,還有代碼提示的快捷代碼也不是alt+/,是以要恢複代碼提示用alt+/.需要做兩件事.

在 Window - Preferences - General - Keys 内

1、把word completion的快捷鍵設定alt+C

2、把Content Assist的快捷鍵由ctrl+space改成alt+/

如果還是不提示,極有可能是提示功能被關了.

如下:

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 選項打上勾就可以了。

繼續閱讀