ReSharper 2023.1 Help

Predefined Live Templates for HTML-Like

This topic lists all predefined live templates for HTML-Like in ReSharper 2023.1. For more information about live templates, see Create source code using live templates.

Template

Details

ctx

Current file context

Scope Everywhere

Body

$CTX$

Parameters

  • CTX - Provides a 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 a new Globally Unique Identifier (GUID)

<script

Create script tag

Scope HTML and similar tags

Body

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

Parameters

  • attributeValue - Suggests an attribute value for the current HTML tag attribute

  • END - The caret position after the template is applied.

a

Create tag attribute

Scope HTML and similar attributes

Body

$ATTR$="$END$"

Parameters

  • ATTR - Suggests an attribute name used in the same tags in the current document

  • END - The caret position after the template is applied.

Last modified: 27 March 2023