Editing Templates

The following fields and buttons appear in the dialog:

Option Description
Name The name of the template.
Context The context determines where the template can be used and the set of available pre-defined template variables. The Java editor defines a context for Java and Javadoc areas.
Automatically insert If selected, code assist will automatically insert the template if it is the only proposal available at the caret position.
Description A description of the template, which is displayed to the user when choosing the template.
Pattern The template pattern.
Insert Variables... Displays a list of pre-defined context specific template variables.

Related concepts

Templates

Related reference

Templates variables
Templates preferences
Java content assist
Task tag preferences
Code templates preferences
Code style preferences