ReSharper 2016.3 Help

Code Templates in JavaScript

Most of ReSharper's code template features are also supported in JavaScript. You can find the detailed information on these features in the corresponding topics of the Code Templates section.

In this topic:

Live Templates

Live/Surround templates can be used for generating code in existing files and (if there is the $SELECTION$ parameter in the template body) for surrounding code fragments with template code, such as try...catch statement. Each live template is identified by a Shortcut - a short string of characters, e.g. foreach - that you can type right in the editor to invoke the template.

ReSharper provides plenty of predefined live templates. You can also create custom live templates in the dedicated editor or right from existing source code .

Last modified: 12 October 2017

See Also