Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The Tools menu contains seven commands:

Build

The Build command compiles the current template. The Output window will show the results of the build operation.

Run

The Run command executes the current template, using values from the Properties window together with the template to create the generated code. At the end of the Run operation, CodeSmith Studio will display the generated code in the Output tab.

Copy Output

The Copy Output command copies the contents of the current Output tab to the Windows clipboard.

Save Output

The Save Output command opens a Save As dialog box to let you save the contents of the current Output tab directly to a new file.

Compile to Assembly

The Compile To Assembly command opens the Compile to Assembly dialog box:

IMAGE GOES HERE

Fill in an assembly name, namespace name, and type name, and click OK to create the assembly. CodeSmith will output a .dll which you can then reference from any .NET project. You will then be able to create an instance of your compiled template by using the type name that you specified. You can then set the properties on the template via code and call the Render or RenderToFile methods to execute the template.

Highlighting Style Editor

The Highlighting Style Editor command opens the Highlighting Style Editor dialog box:

IMAGE GOES HERE

You can select any language in the current template from the Languages combo box. After you select a language, select any style from the listbox and use the controls on the right side of the dialog box to specify how CodeSmith should display that item in the editor.

Options

The Options command displays the Options dialog box so that you can customize the CodeSmith Studio editor.

This feature is only available in the Professional Edition of CodeSmith.

  • No labels