Setting an Execution Type in a Template

See Also 

By default, templates use the project's default execution type. If you change the default execution type for a project, the templates use the new default execution type.

You can edit a template's properties to use an execution type other than the project's default execution type. Once you have set a new execution type for the template, the template's execution type will not change when the project or the project's default execution type changes.

You can also create custom templates and set executor types for them. When a file is created from the custom template, the file is assigned that template's execution type instead of the project's default execution type.

To set an execution type for a template:

  1. From the main window, choose Tools and choose Options.
  2. In the Options window, expand Source Creation and Management and expand Templates.
  3. Expand the appropriate template category node and select the template you want to change.
  4. Select an execution type in the Executor property.

To create a custom template and assign it an execution type:

  1. Create a file from a template and give the file the name you want to use for the template.
  2. In the Source Editor, make any modifications you want to the file's source code.
  3. Right-click the file in the Filesystems window and choose Properties.
  4. In the Properties window, select an execution type in the Executor property.
  5. Right-click the file in the Filesystems window and choose Save as Template.
  6. In the Save as Template dialog box, select a template category and click OK.

    The new template is available in the template chooser.

See Also
Specifying the Default Executor
Defining a New Execution Type

Legal Notices