I am always interested in code generation tools and handy
utilities to reduce the amount of time wasted repeating what
has already been done. I have found Eddie Velasquez's
Code<Template>.NET
a very handy VisualStudio,NETadd-in. It just sits up there in
the upper right-hand corner of my IDE. I occasionally put
templates into it. I frequently push the magic button and get
nicely formatted and debugged blocks of code that I can tweak
a little instead of writing them from scratch. Yes, there are
other tools out there but this one is quite unobtrusive and
helps me get the job done. I strongly recommended having a
look at it. Of course, as always, YMMV.