The Templates Explorer window lists all Code Templates and provides necessary controls for creating, editing and managing code templates.
Note
This page only describes list items and user controls in this tab. See Index of Predefined Templates for a detailed list of predefined code templates.
The window has three tabs to manage three types of ReSharper templates:
Live templates
This tab is used to manage live templates. It contains the list of available templates for
different languages, a preview area where selected templates are displayed,
and a toolbar with a set of buttons to manage live templates:
The left part of this window displays Template Scopes
and user categories; the right part displays a list of templates filtered by
the selected scope and category.
The toolbar controls are described in the table below.
Surround templates
This tab is used to manage surround templates. It contains the
list of available templates for different languages, a preview area
where samples of selected templates are displayed, and a toolbar
with a set of buttons to manage surround templates:
The left part of this window displays Template Scopes
and user categories; the right part displays a list of templates filtered by
the selected scope and category and divided by two groups:
In quicklist and
Not in quicklist.
For more information on the quicklist, see Editing Quick Access List.
The toolbar controls are described in the table below.
File templates
This tab of the Templates Explorer is used to manage
file templates. It contains the list of available templates for
different languages, a preview area where samples of selected
templates are displayed, and a toolbar with a set
of buttons to manage file templates:
The left part of this window displays Template Scopes
and user categories; the right part displays a list of templates filtered by
the selected scope and category and divided by two groups:
In quicklist and
Not in quicklist.
For more information on the quicklist, see Editing Quick Access List.
The toolbar controls are described in the table below.
Toolbar
The toolbar commands in the Template Explorer window are similar in all three tabs:
| Control | Name | Description |
|---|---|---|
|
Layer |
Specifies the settings layer to display only templates saved in this layer and to create new templates in this layer. For more information on settings layers, see Managing and Sharing Options. | |
|
|
Filter Templates |
Allows displaying predefined templates when a user layer is selected. By default, predefined templates are shown only when the Smart option is selected in the Layer selector. |
|
|
Manage layers |
Opens the Settings Layers dialog box to manage settings layers. |
|
|
New Template |
Opens the Template Editor to create a new template. |
|
|
New Category |
Puts a selected template into a new category (a single template can be assigned to multiple categories). For more information, see Organizing Templates. |
|
|
Edit Template |
Opens the Template Editor for editing the selected template. |
|
|
Delete |
Deletes a selected template or category. |
|
|
Import |
Imports templates from an XML file. For more information, see Importing and Exporting Templates. |
|
|
Export |
Exports templates to an XML file. For more information, see Importing and Exporting Templates. |
