This topic lists all predefined live templates for Global in ReSharper 2023.2. For more information about live templates, refer to 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.
This template could be useful:
In string literals that contain references to the current context, that is Logger.LogError("Cannot find action ActionNameDerivedFromContext");
As an alternative to code completion where code completion doesn't work, for example, in comments when documenting a member with a long name.
Before expansionExpansion options
nguid
Insert new GUID
Scope Everywhere
Body
$GUID$
Parameters
GUID - Generates a new Globally Unique Identifier (GUID)