To apply a surround template
- In the code editor, select a block of code that you want to surround.
On the main menu, choose
ReSharper | Edit | Surround With Template, or press Ctrl+Alt+J. The Quick access listof available templates appears.
Select a template from the list. For a complete list of all
available templates, click
Moreand select the desired template from the Choose Templatedialog box. To optionally introduce a template into the Quick access list, select its entry in the Choose Templatedialog box and select Add to quicklistin the lower part of the dialog box before clicking OK.
If the expanded template requires user input, the editor switches to
the template editing mode and suggests an input position. Type the
desired value, or accept the default, suggested by ReSharper, and
Tabor Enterto move to the next input position, Shift+Tabto move the input focus to the previous input position, and Esckey to switch the template editing mode off and move the caret to the end position defined by the template developer.