ReSharper 2021.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.

ReSharper: Live templates in 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 one.

ReSharper: Surround templates in HTML

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.

ReSharper: Surround templates in HTML
Last modified: 08 March 2021