Predefined Live Templates for ASP.NET
This topic lists all predefined live templates for ASP.NET in ReSharper 2021.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
|
nguid | Insert new GUID Scope everywhere Body $GUID$ Parameters
|
<script | Create script tag Scope HTML and similar tags Body <script type="$attributeValue$">$END$</script> Parameters
|
t | Create ASP.NET tag Scope ASP.NET tags Body <$TAG$ $RUNATSERVER$>$END$</$TAG$> Parameters
Before expansion |
tc | Create closed tag Scope ASP.NET tags Body <$TAG$ $RUNATSERVER$$END$/> Parameters
Before expansion |
a | Create tag attribute Scope HTML and similar attributes Body $ATTR$="$END$" Parameters
|
<asp:HyperLink | ASP.NET Hyperlink Scope ASP.NET tags Body <asp:HyperLink runat="server" NavigateUrl="$LINK$" Text="$TEXT$" /> Parameters
|
foreach | foreach block Scope ASP.NET tags Body <% foreach ($TYPE$ $VARIABLE$ in $COLLECTION$) { %>
$SELECTION$
$END$<%}%> Parameters
|



