简体   繁体   中英

eclipse Java autocompletion doesnt work

Hi I have a problem with Eclipse that , after i type a variable and then a '.'
the possible functions are not being autocompleted or shown as drop down.. (For example string str = "hello"; then str. should show me something like length() or substring() ) I have already tried everything with eclipse settings as seen in this link :

Improving Eclipse autocompletion?

But it doesnt work. (Am using Java, mac ,eclipse)

Also when it shows no SWT proposals, and No default proposals, hoever if i give a space instead of '.' it shows some proposals ...

Any suggestions are appreciated..

As your example suggests

(For example string str = "hello"; then str.

Change it to

(For example String str = "hello"; then str.

uppercase S in String, it will work. :)

Did you try the shortcut Ctrl + Space ? (you may have to click space more than once)

通过在ContentAssit> Advanced中检查JavaProposals,JavaTypeProposals来解决问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM