0

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..

Community
  • 1
  • 1
drk
  • 153
  • 1
  • 17

3 Answers3

1

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. :)

sakura
  • 2,249
  • 2
  • 26
  • 39
1

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

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
  • it gives me "No default proposals.." – drk Mar 29 '14 at 11:25
  • you can also try: Window->Preferences->Java->Editor->Content Assist->Advanced - explicitly check Java Proposals - Apply. Make also sure, you are in a Java Perspective, clean your project, and restart eclipse – Kuba Barański Mar 29 '14 at 11:30
0

problem is solved by checking JavaProposals, JavaTypeProposals in ContentAssit > Advanced

drk
  • 153
  • 1
  • 17