Setting Executor Types in Templates

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

You can edit a template's properties to use a specific executor instead of the project's default executor. Once you change an executor for the template, the template's executor does not change when the project or the project's default executor change.

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 executor instead of the project's default executor.

To set an executor for a template:

  1. From the main window, choose Tools Options.

  2. In the Options window, expand the Templates node, expand the appropriate template category node, and select the template you want to change.

  3. Click the Execution tab.

  4. Click the value for the Executor property and choose an executor from the combo box list.
To create a custom template and assign it an executor:
  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 wish to the file's source code.

  3. Right-click the file in the Explorer and choose Properties.

  4. In the Properties window, click the Execution tab.

  5. Click the value for the Executor property and choose an executor from the combo box list.

  6. Right-click the file in the Explorer and choose Save as Template.

  7. 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 for a Project
Defining a New Executor Type

Legal Notices