Customizing CodeSmith Generator

There are several reasons you might want to customize CodeSmith Generator. You might want to reset file associations or change the Sample Directory location. You can configure all of CodeSmith Generators settings through the Options dialog.

Opening the Options dialog.

You can open the Options dialog from the Generator menu. You can also open up the Options dialog by launching the csconfig.exe executable located in the CodeSmith Generator Program Files folder (C:\Program Files\CodeSmith\<VERSION>).

Configuring Settings

All of the configuration settings are grouped into sections and are displayed in nodes on the left hand side as shown in the image below.  

In the above image, the Engine node is selected and allows you to configure various settings like the location of the Sample Directory (CodeSmithSampleDirectory). To close the Options dialog, press OK to apply the changes or Cancel to ignore the changes.

You may need to restart CodeSmith Generator after changing property values for the changes to take effect.
Some properties values may be persisted in real time and will not be rolled back when Cancel is clicked.