To apply a surround template
  1. In the code editor, select a block of code that you want to surround.
  2. On the main menu, choose ReSharper | Edit | Surround With Template, or press Ctrl+Alt+J. The Quick access list of available templates appears.
  3. Select a template from the list. For a complete list of all available templates, click More and select the desired template from the Choose Template dialog box. To optionally introduce a template into the Quick access list, select its entry in the Choose Template dialog box and select Add to quicklist in the lower part of the dialog box before clicking OK.
  4. 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 press Tab or Enter to move to the next input position, Shift+Tab to move the input focus to the previous input position, and Esc key to switch the template editing mode off and move the caret to the end position defined by the template developer.