Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The ActiveSnippet Configuration can be accessed by selecting the ActiveSnippet Configuration menu item located in the Visual Studio Generator sub-menu. The ActiveSnippet Configuration dialog allows you to Add, Remove, Edit or view all ActiveSnippets, Once you've created a template for usage as an ActiveSnippet, you must add the ActiveSnippet which maps to a CodeSmith Generator Template.

...

Template: The full path to the CodeSmith Generator template.

Alias: The ActiveSnippet Alias is the command to be used as the alias representing the selected CodeSmith Generator template.
Description: Specifies the friendly name description of the ActiveSnippet. It will be shown during the Output Usage information.
Target Extensions: The template target language is used as a hint for ActiveSnippets that have the same name.
Template Language: The template language shows the selected CodeSmith Template Output Language.

Argument Mapping

Configuring the arguments for an ActiveSnippet is a powerful feature because it does not force you to have to always pass all properties in for the selected CodeSmith Generator Template as arguments.

...

Template Properties Box: A window of all the property names in a template.
Arguments Box: A window of all the arguments that will be required to use your ActiveSnippet

Default Property Values

The Default Property Values tab will allow you to enter possible default values for your CodeSmith Generator Templates' Property Sheet. This will show all the properties for the ActiveSnippet based CodeSmith Generator Template.

...