All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog .
Fix snippets for abstract method (PR )
Add snippet for 'while not' (wx
) (PR ).
Add 'abstract' snippets (a
) (PR ).
Add 'protected' snippets (d
) (PR , PR ).
Add snippets for VB keywords (PR ).
Object
keyword (o
)
Return
keyword (r
)
String
keyword (s
)
Migrate documentation to Docusaurus (PR ).
Update logo (PR , PR ).
Bump Roslynator analyzers to 4.6.1
(PR ).
Remove parentheses from nameof
snippet (PR ).
Remove option to choose member type (method, property etc.) PR ).
Remove snippet for read-only property (rpp
) PR ).
Remove all but C#, VB and C++ snippets PR ).
Add CODEOWNERS file (#21 ).
Add support for Visual Studio 2022 (#22 ).
Add snippet for KeyValuePair.Create
(kvpc
) (#24 ), (#26 ).
Add snippet for 'using declaration' (uv
) (#27 ).
Add snippet for 'switch expression' (swe
) (#34 ).
Rename default branch to main
.
Format changelog according to 'Keep a Changelog' (#17 ).
Update projects to .NET 4.8 (#18 ).
Move solution file to src
(#19 ).
Replace ruleset file with EditorConfig (#20 ).
Migrate projects to a new csproj format (#23 ).
Add Directory.Build.props
(#23 ).
Simplify snippet 'using statement' (u
) (#27 ).
Use pattern matching to check for null (#29 ).
Change shortcut for 'interface declaration' from ie
to i
(#30 ), (#48 ).
Change shortcut for 'while' from we
to w
(#33 ), (#53 ).
Change shortcut for 'switch statement' from sh
to sw
(#35 ), (#38 ).
Change shortcut for 'enum' from em
to en
(#31 ).
Change shortcut for 'record declaration' from rd
to re
(#39 ).
Change shortcut for 'indexer' from ir
to in
(#40 ).
Change shortcut for 'event declaration' from et
to ev
(#42 ).
Change shortcut for 'throw statement' from tw
to th
(#41 ).
Change shortcut for constructor from cr
to co
(#43 ).
Change shortcut for ternary conditional operator from co
to cop
(#43 ).
Change shortcut for 'module declaration' from me
to mo
(#44 ).
Change shortcut for 'destructor declaration' from dr
to de
(#45 ).
Change shortcut for 'namespace declaration' from ns
to na
(#47 ).
[C++] Change shortcut for 'cast' from ct
to ca
(#50 ).
[C++] Change shortcut for 'inline' from il
to i
(#51 ).
[C++] Change shortcut for 'do-while' from dw
to do
(#52 ).
Remove snippet for type parameter (g
) (#28 ).
Remove snippets where return type is either Int64 or DateTime (#36 ).
Lambda expression without parameters (l0)
DateTimeOffset (dto)
KeyValuePair (kvp)
Record (rd)
Record struct (rdst)
Readonly record struct (rrdst)
Attribute a
AttributeUsage (au)
Conditional (c)
DebuggerDisplay (dd)
DebuggerStepThrough (dst)
DefaultValue (dv)
Description (d)
Flags (f)
Obsolete (o)
Required (r)
TypeConverter (tc)
Put back snippets that were accidentally removed in 0.9.0 (ifxtp, ifx, ifxn, xn, xsne, xsnw).
Change shortcut ge to j
Change shortcut gc to j
Change shortcut vc to vn
Change shortcut vcx to vnx
Change shortcut ge to j
Change shortcut gc to j
Change shortcut vc to vn
Change shortcut vcx to vnx
New Snippets for C# and VB
Read-only indexer (rir)
ThrowNewObjectDisposedException (twn ode)
Rewrite C++ snippets
Change shortcut for '...WithInitializer' snippets from '_' to 'x' (C# and VB)
Remove '...WithArguments' snippets and '...WithParameters' snippets (C# and VB)
Shortcut
Description
Comment
x
logical not operator
prefix
Language
Shortcut
Title
C++
eif
else-if
C#
coxn
conditional operator (not equal to null)
C#
con
conditional operator (equal to null)
C#
doxn
do-while not null
C#
don
do-while null
C#
l2
lambda expression with 2 parameters
C#
wexn
while not null
C#
wen
while null
VB
l2
lambda expression with 2 parameters
VB
wexn
while not null
VB
wen
while null
Language
Shortcut
Title
C#
iftp
if TryParse
C#
ifftp
if not TryParse
C#
u
StreamReader variable
C#
u
StreamWriter variable
C#
u
StringReader variable
C#
u
StringWriter variable
C#
u
XmlReader variable
C#
u
XmlWriter variable
C#
us
using static directive
VB
iftp
if TryParse
VB
ifftp
if not TryParse
VB
u
StreamReader variable
VB
u
StreamWriter variable
VB
u
StringReader variable
VB
u
StringWriter variable
VB
u
XmlReader variable
VB
u
XmlWriter variable
'virtual/Overridable' snippets
Language
Shortcut
Title
C#
u
IEnumerator<T> variable
C#
u
using variable
C#
vb
Boolean variable
C#
vi
Int32 variable
C#
vs
String variable
C#
vt
variable declaration with explicit cast operator
VB
u
IEnumerator(Of T) variable
VB
vb
Boolean variable
VB
vi
Int32 variable
VB
vs
String variable
VB
vt
variable with DirectCast