ReSharper 2024.1 Help

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

This topic lists all predefined surround templates for ASP.NET(VB.NET) in ReSharper 2024.1. For more information about surround templates, refer to Surround code fragments with templates.




For Each block

Scope ASP.NET tags


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


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

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

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

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

Before expansion

ReSharper: Live templates

After expansion

ReSharper: Live templates
Last modified: 11 April 2024