JetBrains Rider 2018.1 Help

Predefined Live Templates for XML

This topic lists all predefined live templates for XML in JetBrains Rider 2018.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.
nguid

Insert new GUID

Scope everywhere

Body

$GUID$

Parameters

  • GUID - Generates new Globally Unique Identifier (GUID)
t

Create tag

Scope XML tags

Body

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

Parameters

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

Before expansion

Reference Options Templates Live Templates Predefined XML t before

After expansion
Reference Options Templates Live Templates Predefined XML t after

tc

Create closed tag

Scope XML tags

Body

<$TAG$ $END$/>

Parameters

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

Before expansion

Reference Options Templates Live Templates Predefined XML tc before

After expansion
Reference Options Templates Live Templates Predefined XML tc after

a

Create tag attribute

Scope XML attributes

Body

$ATTR$="$END$"

Parameters

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

Before expansion

Reference Options Templates Live Templates Predefined XML a before

After expansion
Reference Options Templates Live Templates Predefined XML a after

Last modified: 20 August 2018