In this topic:
Live/Surround templates can be used for generating code in existing files and (if there is the
$SELECTION$ parameter in the template body) for surrounding code fragments with template code, such as
try...catch statement. Each live template is identified by a Shortcut - a short string of characters, e.g. foreach - that you can type right in the editor to invoke the template.
Postfix templates help you transform expressions that you have already typed without jumping backwards - just type a dot after an expression and pick a template from the completion list.