ReSharper 8.0 Web Help

Live templates

Live templates contain predefined code fragments. Code fragments can be easily and quickly inserted in your code, that saves the time

To view the list of live templates delivered with resharper
  1. On the main menu, choose ReSharper | Live Templates.
  2. The Templates Explorer window opens.
  3. Click the Live Templates tab. For more information about the tab, see Predefined Live Templates.
  4. In the tree view find and expand the Predefined Templates node.
  5. Find and expand the JavaScript node.
  6. The list of predefined live templates that are available for JavaScript is displayed.

Each template is identified by abbreviation, to figure out what lies under the abbreviation select the template and look at the bottom of the Templates Explorer window. For more information about variables used in templates, see Template Parameters and .

The procedure of applying live templates for JavaScript is the same as for other languages, you can find it here.

You can not only use templates, but also create them. You can add a template manually or ReSharper can generate a new template from the selected source code. For more information, see Creating a Template and Creating a Live Template from Source Code.


Pay attention that a statement in JavaScript consists of one or more expressions. So if you click Where statement is expected, it actually means where statement or expression is expected.