ReSharper | Templates Explorer | Live Templates | JavaScript
This topic lists all predefined live templates for JavaScript in ReSharper 2022.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 list of items describing current context. This includes file name, containing type name, namespace name, etc. (context)
nguid
Insert new GUID
Scope everywhere
Body
$GUID$
Parameters
GUID - Generates new Globally Unique Identifier (GUID) (guid)
do
do...while loop
Scope JS statements
Body
do{
$END$
}while($COND$)
Parameters
COND - no macro
END - The caret position after the template is applied.
dw
writeln function call
Scope JS statements
Body
document.writeln($END$);
Parameters
END - The caret position after the template is applied.
else
else statement
Scope JS statements
Body
else{
$END$
}
Parameters
END - The caret position after the template is applied.