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 CodeSmith Studio Toolbar includes 20 buttons:

  New Document. Clicking this button creates a new blank template. Alternatively, you can use the dropdown arrow to select a particular template type (C#, VB, or JScript) to create.

  Open Document. Clicking this button opens a File Open dialog box to allow you to load an existing CodeSmith template or code-behind file.

  Save Document. Clicking this button 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 All Documents. Clicking this button saves all changes to any files open in CodeSmith Studio.

  Cut. Clicking this button removes the selection from the active window and places it on the Windows clipboard.

  Copy. Clicking this button places the selection from the active window on the Windows clipboard.

  Paste. Clicking this button replaces the selection in the active window with the current contents of the Windows clipboard.

  Undo. Clicking this button reverses the effects of the most recent editing operation. The dropdown arrow lets you select multiple operations to undo at one time.

  Redo. Clicking this button reverses the effects of the most recent Undo command. The dropdown arrow lets you select multiple operations to redo at one time.

  Decrease Indent. Clicking this button removes a tab character from the start of the selection.

  Increase Indent. Clicking this button inserts a tab character at the start of the selection.

  Build. Clicking this button compiles the current template. The Output window will show the results of the build operation.

  Run. Clicking this button 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. Clicking this button copies the contents of the current Output tab to the Windows clipboard.

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

  Insert Content. Clicking this button inserts standard blocks such as code blocks or script blocks. Use the dropdown arrow to select the block that you want to insert, or click the button to repeat the last insert operation.

  Toggle Bookmark. Clicking this button inserts a visible bookmark to the left of the current line. If the current line already has a bookmark, the Toggle Bookmark command removes the bookmark.

  Next Bookmark. Clicking this button moves the cursor to the start of the next line in the current file that is marked with a bookmark. The search "loops around" to the top of the file if it reaches the bottom of the file.

  Previous Bookmark. Clicking this button moves the cursor to the start of the previous line in the current file that is marked with a bookmark. The search "loops around" to the bottom of the file if it reaches the top of the file.

  Clear Bookmarks. Clicking this button moves the cursor to the start of the previous line in the current file that is marked with a bookmark. The search "loops around" to the bottom of the file if it reaches the top of the file.

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

  • No labels