ReSharper Web Help

ReSharper | Templates Explorer

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:

Reference__Templates_Explorer__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:

Reference__Templates_Explorer__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:

Reference__Templates_Explorer__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 controls

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.
toolbar__filter_usages 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.
Toolbar__Settings Manage layers Opens the Settings Layers dialog box to manage settings layers.
iconCreateTemplate New Template Opens the Template Editor to create a new template.
iconCreateCategory 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.
iconEditTemplate Edit Template Opens the Template Editor for editing the selected template.
toolbar__remove Delete Deletes a selected template or category.
toolbar__import Import Imports templates from an XML file. For more information, see Importing and Exporting Templates.
toolbar__export Export Exports templates to an XML file. For more information, see Importing and Exporting Templates.