1. A computer-implemented method modifying templates in a code generation process comprising: receiving a template for generating code; receiving a model for generating code; processing the template and the model in a code generator, and in accordance therewith, generating code based on the model and the template; receiving a modification to the generated code, and in accordance therewith, producing modified code; and automatically changing the template based on the modified code to produce a modified template, wherein processing the modified template and the model in the code generator automatically generates said modified code.