ReSharper Web Help

ReSharper | Templates Explorer | Live Templates | Global

Global

ReSharper provides special-purpose templates that are not bound to a particular programming language.

Template name Description
ctx

Go to top

Purpose
Provides the list of items that describe the current context.

$CTX$

This could be useful:

  • In string literals that contain references to the current context, i.e. Logger.LogError("Cannot find action ActionNameDerivedFromContext");
  • As an alternative to code completion where IntelliSense doesn't work properly - for example, in comments when documenting a member with a long name (see example below).

Before expansion

Expansion options

nguid

Go to top

Purpose
Inserts a globally unique identifier.

$GUID$

Before expansion

After expansion

See Also

Reference