ReSharper Web Help

You can assign any template to one or several categories. Categories are used in the Templates Explorer to make managing templates easier. For example, if you have custom templates for C# object initializers and extension methods, it could be appropriate to assign them to C# 3.0 category.

To assign a template to a category
  1. On the main menu, choose ReSharper | Live Templates | <template type>.
  2. Select a template from User Templates, Personal Solution Templates or Shared Solution Templates.
  3. Click New Category in the Templates Explorer toolbar. Alternatively, right-click the target template and choose New Category in the context menu.
  4. When the Create Category dialog box opens, specify a name for a new category and click OK.
To sort templates
  1. On the main menu, choose ReSharper | Live Templates | <template type>.
  2. In the Group by drop-down list, select one of four sorting options:
    • Storages, Languages and Categories (default): the list of templates is sorted, in order of descending priority, by type (there are four types of templates: predefined templates, user templates, shared solution templates, and personal solution templates), applicability in certain languages, and category (including two default categories - Iteration and Imported Visual C# Snippets - as well as any custom categories).
    • Storages and Categories: same as Storages, Languages and Categories, but language availability is not taken into account.
    • Categories and Languages: same as Storages, Languages and Categories, but templates are treated as belonging to the same type.
    • Languages and Categories: same as Categories and Languages, but in reverse order.
To delete a template or category
  1. On the main menu, choose ReSharper | Live Templates | <template type>.
  2. Select a template or category from User Templates, Personal Solution Templates or Shared Solution Templates.
  3. Click Delete in the Templates Explorer toolbar. When you delete a category, ReSharper doesn't delete any templates that were assigned to it - instead, these templates are assigned to a higher-level category (for example, User Templates).

 Warning

Think twice before clicking Delete because ReSharper doesn't prompt for confirmation.

See Also

Procedures

Reference