Trying to generate some simple code based on the current classe's fields
已回答
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?
请先登录再写评论。
Check the built-in toString() generation templates, they are customizable, so you can add your own similar code that will iterate over class fields.
It a bit odd to use generate toString for that :) But thanks, I'll give it a try.