CodeSmith generates code the way you want it. It uses at
template that is a mix of static text and dynamic scripts to create whatever
you want it to create. The dynamic scripting in CodeSmith Studio resembles
both ASP scripting tags and .NET inline ASPX code. CodeSmith Studio, as
depicted below, contains many samples already setup for you that you can use,
and these help in creating your own custom scripts.
CodeSmith also has an online community, where hundreds of
other samples reside. Not only that, they have a forum and blogs to help with
some of the questions that there may be.
This article will discuss code generation, and show some
examples of creating templates that generate code the way that I wanted it to
be for my processes. You will see how it can be functional to generate code the
way you want it as well.