Predefined Live Templates for Razor
This topic lists all predefined live templates for Razor in JetBrains Rider 2022.2. For more information about live templates, see Create source code using live templates.
Template | Details |
---|---|
| Current file context Scope everywhere Body $CTX$ Parameters
|
| Insert new GUID Scope everywhere Body $GUID$ Parameters
|
| Create script tag Scope HTML and similar tags Body <script type="$attributeValue$">$END$</script> Parameters
|
| Create tag Scope HTML tags, Razor tags Body <$TAG$>$END$</$TAG$> Parameters
|
| Create closed tag Scope HTML tags, Razor tags Body <$TAG$ $END$/> Parameters
|
| Create tag attribute Scope HTML and similar attributes Body $ATTR$="$END$" Parameters
|
| Razor inherits directive Scope Razor CSharp tags Body @inherits $TYPENAME$
$END$ Parameters
|
| Razor model directive Scope Razor CSharp tags Body @model $TYPENAME$
$END$ Parameters
|
| Razor section Scope Razor CSharp tags Body @section $section$
{
$END$
} Parameters
|