Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Snippetica for VBNew to Visual Studio Code? Get it now.

Snippetica for VB

Josef Pihrt

|
283 installs
| (0) | Free
A collection of snippets for VB.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Snippet Browser

  • Browse all available snippets with Snippet Browser.

Quick Reference

Member Declaration

Shortcut Description Comment
_ interface member declaration prefix
c class declaration -
co constructor declaration -
de delegate declaration -
en enum declaration -
ev event declaration -
f field declaration -
i interface declaration -
in indexer declaration -
k constant declaration -
m method declaration -
mo Module declaration -
p property declaration -
re record declaration -
st struct declaration -

Modifer

Shortcut Description Comment
i internal (Friend) prefix
p private prefix
r read-only prefix (after access modifier)
s static (Shared) prefix (after access modifier)
v virtual (Overridable) prefix (after access modifier)

Statement

Shortcut Description Comment
fe foreach statement -
fr for statement -
if if statement -
sc Select Case statement -
t try statement -
th throw statement -
u using statement -
w while statement -

Operator

Shortcut Description Comment
gt GetType operator -
n new object creation -
no nameof operator -
oo operator overload -
tc TryCast operator -
x logical not operator prefix

Type

Shortcut Description Comment
a Array -
b Boolean -
dt DateTime -
i Int32 -
l List<T> -
o Object -
s String -

Other

Shortcut Description Comment
c catch clause -
d default keyword -
e else clause -
f finally clause -
l lambda expression -
n (equals to) null -
pa parameter array -
pp preprocessor directive prefix
ps private set -
r return keyword -
v local variable declaration -
x with initializer suffix
y yield prefix

List of Selected Snippets

Shortcut Title
_ev interface event
_in interface indexer
_m interface method
_p interface property
_rp interface read-only property
c Public class
catch Catch clause
co Public constructor
da Debug.Assert
de Public delegate
dispose Dispose
do Do statement
dt DateTime type
dw Debug.WriteLine
e Else clause
eif ElseIf
en Public enum
equals Equals and GetHashCode
f Public field
fe For Each statement
fr For statement
frr For statement (reversed)
gt GetType
ie Public interface
ifn If Is Nothing
iftc If TryCast IsNot Nothing
iftp if TryParse
ifx If Not
ifxn If IsNot Nothing
ifxtc If TryCast Is Nothing
ifxtp if not TryParse
in Public indexer
k Public constant
kvp KeyValuePair type
kvpc KeyValuePair.Create method
l Lambda expression
l0 Lambda expression without parameters
l2 Lambda expression with 2 parameters
m Public method
mo Public module
n Is Nothing
no NameOf operator
p Public auto property
pa parameter array
ppif #If directive
ppife #If-#Else directive
ppr #Region directive
ref Return False
ren Return Nothing
ret Return True
rf Public read-only field
rin Public read-only indexer
rp Public read-only auto property
rpp Public read-only Property
sc Select Case statement
sco static constructor
sf Public Shared field
sm Public Shared method
sne String.IsNullOrEmpty
snw String.IsNullOrWhiteSpace
srf Public Shared read-only field
srp Public Shared read-only auto property
srpp Public Shared read-only Property
st Public structure
t CType operator
tc Try-Catch
tcf Try-Catch-Finally
td TODO comment
tf Try-Finally
thn Throw New
u Using statement
v local variable declaration
va array variable
vb Boolean variable
vi Int32 variable
vm Public Overridable method
vn - new variable
vp Public Overridable auto property
vrp Public Overridable read-only auto property
vrpp Public Overridable read-only Property
vs String variable
vt local variable with DirectCast
we While statement
wen While Is Nothing
wexn While IsNot Nothing
xn IsNot Nothing
xsne String.IsNullOrEmpty = False
xsnw String.IsNullOrWhiteSpace = False

(Generated with DotMarkdown)

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft