Setting a Compiler Type in a Template

See Also 

By default, templates use the default compiler type. If you change the default compiler type, the templates also start using the new default compiler type.

You can edit a template's properties to use a specific compiler type instead of the default compiler type. Once you change a compiler type for the template, the template's compiler type does not change if the default compiler type changes.

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

To set a compiler 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. Specify the compiler type in the Compiler property.

To create a custom template and assign it a compiler 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. Specify the compiler type in the Compiler 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 Compiler Type
Defining a New Compiler Type

Legal Notices