Surrounding selected statements with a code template

Use the Surround With edit menu item to surround selected statements with a code template. You can create your own templates and customize existing templates on the Template preference page.

Procedure

  1. Highlight the statements to be surrounded with a code template.
  2. Click Source > Surround With. A list of templates that are valid for the selection is displayed.
  3. Select the template that you want to insert. The surrounded text is used to populate any variables in the code template.