Eclipse , when typing java code , it will not predict anything , i like it predicting what i am going to type

StackOverflow https://stackoverflow.com/questions/22233511

  •  10-06-2023
  •  | 
  •  

Question

I am trying to type add.setOnClickListener... and so on. But when I type add., I get nothing. I have gone into pref > Java > editor > content > change the delay time to 0ms, but still nothing. It seems to red line everything instantly, before I have even written the code as well -- as if I don't already know it's not complete yet. I have also tried cleaning and rebuilding but it just does not want to predict for me. I need the prediction as I am still learning the code and it helps jog my memory.

Was it helpful?

Solution

The code-completion setting should be bound to ctrl + space but after reading the comments, something must have happened to change that.

You should go to Windows menu -> Preferences -> Java -> Editor -> Content assist and see your settings there.

enter image description here

These are the settings I have for comparison.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top