Trying to generate some simple code based on the current classe's fields

Answered

Hi!!

 

I'm trying to generate some code, using a live template or otherwise, that is based on a template, and the list of fields of the currently edited class.

Couldn't find a way to do that.  Any idea?

0
2 comments

Check the built-in toString() generation templates, they are customizable, so you can add your own similar code that will iterate over class fields.

0

It a bit odd to use generate toString for that :)  But thanks, I'll give it a try.

0

Please sign in to leave a comment.