Code Template with Fields

I am new to intellij and I was wondering if there is a template mechanism where I can select a few fields and it can generate various codes snippets, e.g. print them, or create toString, or hql, etc.
I wrote an eclipse plugin that does that. The details can be found here : http://fast-code.sourceforge.net/templates.htm. Is it worth porting it to intellij?

3 comments
Comment actions Permalink

Thanks, but it looks like eclipse code templates. Can it do what has been described in this blog : http://www.marchwicki.pl/blog/2010/11/building-a-pojo-in-an-elegant-way/?

Thanks,
--Gautam

0
Comment actions Permalink

Ah, I see now.

IDEA has the most used cases covered (generate equals, hashCode, toString), but there is no generic facility to generate code from the current class' fields. So go for it!

0

Please sign in to leave a comment.