Setting Synchronization Mode in a Template

By default, templates use the Confirm All Changes setting for the Synchronization Mode property. You can edit a template's properties to use a different default synchronization mode for new Java files.

You can also create custom Java templates and set the default synchronization mode for them.

To change the synchronization mode for a template:

  1. From the main window, choose Tools and choose Options.
  2. In the Options window, expand the Source Creation and Management node and the Templates node. Expand the appropriate template category node and select the Java template you want to change.
  3. Click the value for the Synchronization Mode property and select a mode from the combo box. See Setting Source Synchronization Properties for definitions of the property options.

To create a custom template and assign it a synchronization mode:

  1. Create a file from a Java 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 Explorer and choose Properties.
  4. In the Properties window, click the Properties tab.
  5. Click the value for the Synchronization Mode property and select a mode from the combo box.
  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
Templates
Synchronizing Source Code
Setting Source Synchronization Properties
Using the Options Window

Legal Notices