I use Eclipse Oxygen.2 Release (4.7.2)
I try some lambda expressions and have the following problem:
I write the lambda parameters without types, Eclipse auto complete works fine:
If I write lambda parameters with types, no auto complete:
But I can write this on my own and all works fine:
Is this a bug in Eclipse? Can someone explain this behavior?
Step 1: Open your Eclipse or Spring Tool Suite, then go to the Window > Preferences as shown in the below image. Step 2: In the next screen go to the Java > Editor > Content Assist > Auto activation triggers for Java as shown in the below image.
you type the first letter/letters and when you click ctrl + space you get a list of all the variables that start with that letter/letters. it's an auto-complete tool...
The following fixed it: Open Eclipse Preferences. Go to Preferences > Java > Editor > Content Assist > Advanced. Make sure that Other Java Proposals is selected in the list of proposal kinds.
Yes, this is a known bug of Eclipse, which has not yet been fixed: Eclipse bug 460921.
Eclipse is open source and contributions to fix this bug are welcome.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With