ReSharper 2016.3 Help

Predefined Live Templates for XML

ReSharper | Templates Explorer | Live Templates | XML

This topic lists all predefined live templates for XML in ReSharper 2016.3.1. For more information about live templates, see Creating Source Code Using Live Templates

TemplateDetails
ctx

Current file context

Scope everywhere

Body

$CTX$

Parameters

  • CTX - Provides list of items describing current context. This includes file name, containing type name, namespace name, etc. (context)
t

Create tag

Scope XML tags

Body

<$TAG$>$END$</$TAG$>

Parameters

  • TAG - Suggests XML tag name used in current document (suggestXmlTagName)
  • END - The caret position after the template is applied.

Before expansion

/help/img/dotnet/2016.3/Reference__Options__Templates__Live_Templates__Predefined__XML__t__before.png

After expansion
/help/img/dotnet/2016.3/Reference__Options__Templates__Live_Templates__Predefined__XML__t__after.png

tc

Create closed tag

Scope XML tags

Body

<$TAG$ $END$/>

Parameters

  • TAG - Suggests XML tag name used in current document (suggestXmlTagName)
  • END - The caret position after the template is applied.

Before expansion

/help/img/dotnet/2016.3/Reference__Options__Templates__Live_Templates__Predefined__XML__tc__before.png

After expansion
/help/img/dotnet/2016.3/Reference__Options__Templates__Live_Templates__Predefined__XML__tc__after.png

a

Create tag attribute

Scope XML attributes

Body

$ATTR$="$END$"

Parameters

  • ATTR - Suggests XML attribute name used in the same tags in current document (suggestXmlAttributeNameByTag)
  • END - The caret position after the template is applied.

Before expansion

/help/img/dotnet/2016.3/Reference__Options__Templates__Live_Templates__Predefined__XML__a__before.png

After expansion
/help/img/dotnet/2016.3/Reference__Options__Templates__Live_Templates__Predefined__XML__a__after.png

nguid

Insert new GUID

Scope everywhere

Body

$GUID$

Parameters

  • GUID - Generates new Globally Unique Identifier (GUID) (guid)
Last modified: 3 April 2017