A template is a section of code that is frequently used. You want to insert it with a few keystrokes.
The Templates view allows you to create your own, to edit, or add an existing template for the currently active editor.
To add the Templates view to the current perspective, click Window > Show View > Other... > General > Templates.
Note that the content of this view is editor-specific. So, templates are not available for all editors.
In the source code editors, templates can be added using content assist (Ctrl+Space) or by selection from the Templates view.
To create, edit, delete, import, and export templates, you can also use the Templates preference page.
This column lists the available templates ascending in accordance to its name.
This column provides further information about the usage and content of the available templates.
The preview displays the formatted source code of the template. This enables you to check if the template meets your requirements before adding it.
The toolbar in the Templates view contains the following functionalities:
Adds the template to the current cursor position in the active editor
Opens the New Template dialog to determine a new template
Opens the Edit Template dialog to rework an existing template
Deletes a template
Hides or displays the templates that can be used or not at the current cursor position
Collapses the structure of available templates
Opens the Templates preference page