What is the Eclipse equivalent of IntelliJ "Live templates"?

akapulko2020 picture akapulko2020 · Oct 26, 2010 · Viewed 8.9k times · Source

I mean stuff like typing "iter" and getting a "for" loop with a choice of what variable to iterate on , typing "soutv" to generate a "System.out.println" with the "variable=" already in ...

Thanks !

Answer

aioobe picture aioobe · Oct 26, 2010

It is called Templates and it's found under,

Window → Preferences → Java → Editor → Templates

enter image description here

The "soutv" template does not exist ("sysout" does, and it's similar), but it's easy to add. I used this pattern:

System.out.println("variable=" + ${cursor}${});