JetBrains Rider 2021.1 Help

Predefined Surround Templates for ASP.NET(VB.NET)

This topic lists all predefined surround templates for ASP.NET(VB.NET) in JetBrains Rider 2021.1. For more information about surround templates, see Surround Code Fragments with Templates

TemplateDetails
foreach

For Each block

Scope ASP.NET tags

Body

<%For Each $VAR$ As $TYPE$ In $COL$ %> $SELECTION$ <%Next%>

Parameters

  • COL- Suggests visible variable that can be enumerated (that is, used in foreach loop as collection)

  • TYPE- Analyzes code and guesses type of element of a collection.

  • VAR- When executed in variable declaration (where variable name should stand), suggests name for the variable.

  • SELECTION- The text selected by the user before invoking the template.

Before expansion

JetBrains Rider: Live templates
After expansion
JetBrains Rider: Live templates

Last modified: 12 July 2021