ReSharper 10.0 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 templates represent code fragments that can be quickly inserted into your code. The code of the template can be a short expression, a complete construct, or even an entire class or method. Each live template is identified by a Shortcut - a short string of characters such as foreach - that you can type right in the editor to invoke the template. For more information, see Creating Source Code Using Live Templates.

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

Surround templates

Surround templates let you quickly enclose an expression, a single statement or an arbitrary block of code with a predefined code construction, such as for loop, or try...catch statement. Surround templates have no shortcuts, they are identified by their descriptions. See Surrounding Code Fragments with Templates for details.

There are a few predefined surround templates. You can also create your own surround templates.

See Also

Last modified: 20 November 2015