ReSharper Web Help

ReSharper | Live Templates | Live Templates | Predefined Templates | No Language

No Language

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

Template name Description
defaultBodyTemplate

Go to top

This template has been superseded by a new page in the ReSharper Options dialog box, ReSharper | Options | Languages | Common | Members Generation.

See Members Generation, Generating Code from Usage for details on configuring bodies in generated members.

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
ctx (before)
Expansion options
ctx (expansion)

nguid

Go to top

Purpose
Inserts a globally unique identifier.

$GUID$

Before expansion
nguid (before)
After expansion
nguid (after)

See Also

Reference