JetBrains Rider 2017.3 Help

Predefined Live Templates for HTML

This topic lists all predefined live templates for HTML in JetBrains Rider 2017.3. 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)
<script

Create script tag

Scope HTML and similar tags

Body

<script type="$attributeValue$">$END$</script>

Parameters

  • attributeValue - Suggest attribute value for current html tag attribute
  • END - The caret position after the template is applied.

Before expansion

Reference Options Templates Live Templates Predefined HTML script before

After expansion
Reference Options Templates Live Templates Predefined HTML script after

t

Create tag

Scope HTML tags, Razor tags

Body

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

Parameters

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

Before expansion

Reference Options Templates Live Templates Predefined HTML t before

After expansion
Reference Options Templates Live Templates Predefined HTML t after

tc

Create closed tag

Scope HTML tags, Razor tags

Body

<$TAG$ $END$/>

Parameters

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

Before expansion

Reference Options Templates Live Templates Predefined HTML tc before

After expansion
Reference Options Templates Live Templates Predefined HTML tc after

a

Create tag attribute

Scope HTML and similar attributes

Body

$ATTR$="$END$"

Parameters

  • ATTR - Suggests 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 HTML attr before

After expansion
Reference Options Templates Live Templates Predefined HTML attr after

Last modified: 19 April 2018