IntelliJ has a feature called Postfix Completion. Is this available in Eclipse?
For example, in IntelliJ when you have
int count = 10;
count.fori
it becomes
int count = 10;
for (int i = 0; i < count; i++) {
}
I use both IDEs but i prefer Eclipse for its views but IntelliJ has some interesting code completions and templates that make life easier.
Yes, postfix completion was introduced in Eclipse 4.14 (December 2019).
It works similarly to IntelliJ. For your example, if you type
int count = 10;
count.
and invoke autocomplete ("content assist", Ctrl-Space), Eclipse will offer the completion "foriub", which will yield the same loop as in IntelliJ. There's also "forllb", which will yield a loop counting backwards.
Notes:
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