Predefined Surround Templates for VB.NET
This topic lists all predefined surround templates for VB.NET in ReSharper 2021.1. For more information about surround templates, see Surround Code Fragments with Templates
Template | Details |
---|---|
If | 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 |
If..Else | 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 |
SyncLock | Transform the selection into the Scope VB.NET 8.0+ statements Body SyncLock $END$
$SELECTION$
End SyncLock Parameters
Before expansion After expansion |
Using | Put the selection into the Scope VB.NET 8.0+ statements Body Using $END$
$SELECTION$
End Using Parameters
Before expansion After expansion |
tc | Wrap the selection into the Scope VB.NET 8.0+ expressions Body TryCast($SELECTION$, $TYPE$) Parameters
Before expansion After expansion |
ct | Transform the selection into the first parameter of the Scope VB.NET 8.0+ expressions Body CType($SELECTION$, $TYPE$) Parameters
Before expansion After expansion |
dc | Transform the selection into the first parameter of the Scope VB.NET 8.0+ expressions Body DirectCast($SELECTION$, $TYPE$) Parameters
Before expansion After expansion |
namespace | 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 |