In this topic:
Live templates represent code fragments that can be quickly inserted into your code. The code of the template can be a short expression, a complete construct, or even an entire class or method. Each live template is identified by a Shortcut - a short string of characters such as foreach - that you can type right in the editor to invoke the template. For more information, see Creating Source Code Using Live Templates.
let you quickly enclose an expression, a single statement or an arbitrary
block of code with a predefined code construction, such as
Surround templates have no shortcuts, they are identified by their descriptions.
Surrounding Code Fragments with Templates