Live templates
Live templates contain predefined code fragments. Code fragments can be easily and quickly inserted in your code, that saves the time
- On the main menu, choose ReSharper | Live Templates.
- The Templates Explorer window opens.
- Click the Live Templates tab. For more information about the tab, see Live Templates.
- In the tree view find and expand the Predefined Templates node.
- Find and expand the JavaScript node.
- 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 Variables and JavaScript.
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.
