ReSharper 2017.2 Help

Code Templates in HTML

Most of ReSharper's code template features are also supported in HTML. You can find the detailed information on these features in the corresponding topics of the Code Templates section. In the main topic of the section, you can also find the feature matrix and check what exactly is supported in HTML.

In this topic, you can find some examples of using code template features in HTML:

Live Templates

ReSharper provides several predefined live templates for HTML.


For more information, see using live templates.

Surround Templates

Another way to modify code is using surround templates. There are two predefined surround templates for HTML-like code, so you can use one of them or create your own.


After you choose the first template, ReSharper prompts you to specify what tag should be used to surround the selected content. The list of available tags is based on tags used in the current file.

Last modified: 11 September 2017