Using the Template Editor

The CodeSmith Generator Template Editor is a complete development environment for templates. You use it to edit, build and run templates, and it includes features that make writing and debugging templates easier, such as statement completion, Go To Definition and outlining.

The Template Editor is built into Visual Studio. It's also available as a standalone application, CodeSmith Generator Studio (TemplateEditor.exe). Like the Visual Studio integration, Generator Studio isn't part of Generator Server.

Template Editor with a template open and the editor context menu showing Go To Definition and outlining commands

The Template Editor can do everything Template Explorer can, and more. When you just want to execute templates and generate code, Template Explorer is usually quicker. When you're actively developing templates, use the Template Editor.

In this section