Predefined Surround Templates for VB.NET
This topic lists all predefined surround templates for VB.NET in ReSharper 2022.2. For more information about surround templates, see Surround code fragments with templates.
Template | Details |
---|---|
| Put the selection into the statement block following Scope VB.NET 8.0+ statements Body If $END$ Then
$SELECTION$
End If Parameters
Before expansion After expansion |
| Put the selection into the statement block following Scope VB.NET 8.0+ statements Body If $COND$ Then
$SELECTION$
Else
$END$
End If Parameters
Before expansion After expansion |
| Transform the selection into the Scope VB.NET 8.0+ statements Body SyncLock $END$
$SELECTION$
End SyncLock Parameters
Before expansion After expansion |
| Put the selection into the Scope VB.NET 8.0+ statements Body Using $END$
$SELECTION$
End Using Parameters
Before expansion After expansion |
| Wrap the selection into the Scope VB.NET 8.0+ expressions Body TryCast($SELECTION$, $TYPE$) Parameters
Before expansion After expansion |
| Transform the selection into the first parameter of the Scope VB.NET 8.0+ expressions Body CType($SELECTION$, $TYPE$) Parameters
Before expansion After expansion |
| Transform the selection into the first parameter of the Scope VB.NET 8.0+ expressions Body DirectCast($SELECTION$, $TYPE$) Parameters
Before expansion After expansion |
| Add a namespace to the selected code Scope VB.NET 8.0+ types or namespaces Body Namespace $END$
$SELECTION$
End Namespace
Parameters
Before expansion After expansion |