The File Menu
The File menu contains 14 commands.
New
The New command displays a submenu with four choices:
- C# Template
- VB Template
- JScript Template
- Blank Template
Each of these choices creates a new template of the specified type.
If you'd like to modify the default contents of the C#, VB, or JScript templates, you'll find them in the NewFileTemplates subfolder of your CodeSmith installation.
Open
The Open command opens a File Open dialog box to allow you to load an existing CodeSmith template or code-behind file.
Save
The Save command saves the current template. If the template has not yet been saved, this command opens a Save As dialog box to allow you to assign a name to the template. Otherwise, it saves the template with its existing name.
Save As
The Save As command opens a Save As dialog box to allow you to save the current template with a new file name.
Save All
The Save All command saves all changes to any files open in CodeSmith Studio.
Close
The Close command closes the current template.
Close All
The Close All command closes all files open in CodeSmith Studio.
Recent Files
The Recent Files command displays a submenu of up to eight files that you have recently loaded in CodeSmith studio. Select a file from the menu to reload it.
Save As HTML
The Save As HTML command opens a Save As dialog box to allow you to save the current template as an HTML file.
Save As RTF
The Save As RTF command opens a Save As dialog box to allow you to save the current template as a Rich Text Format (RTF) file.
The Print command opens the Print dialog box to allow you to print the current template.
Page Setup
The Page Setup command opens the Page Setup dialog box to allow you to set margins and other properties of the printed output.
Print Preview
The Print Preview command displays the current template in a Print Preview window.
Exit
The Exit command closes CodeSmith Studio. If you have unsaved changes in any open files, you will be prompted to save those changes.
This feature is only available in the Professional Edition of CodeSmith.