Can you do loops in code templates, e.g I want to print all the fields in a class. Is there a template for that?
Assuming you're talking about Java > Editor > Templates
a reference (maybe outdated) is here
This SO question useful-eclipse-java-code-templates containes some examples.
To iterate over class members using a toString() style generator you may find this useful: toString() Generator: Format Templates
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