Rider Help

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

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

TemplateDetails
foreach

For Each block

Scope ASP.NET tags

Body

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

Parameters

  • COL - Suggests visible variable that can be enumerated (that is, used in foreach loop as collection) (enumerableVariable)
  • TYPE - Analyzes code and guesses type of element of a collection. (guessElementType)
  • VAR - When exectuted in variable declaration (where variable name should stand), suggests name for the variable. (suggestVariableName)
  • SELECTION - The text selected by the user before invoking the template.

Before expansion

/help/img/dotnet/2017.2/Reference__Options__Templates__Surround_With_Templates__Predefined__ASP.NET__VB.NET__foreach__before.png

After expansion
/help/img/dotnet/2017.2/Reference__Options__Templates__Surround_With_Templates__Predefined__ASP.NET__VB.NET__foreach__after.png

Last modified: 11 October 2017