CSharp Snippet Collection
Description
CSharp Snippet Collection is Visual Studio extension which contains several snippets for C#. Please consider it's repo for more details.
Version 1.3
Breaking changes
⚠️ There are breaking changes:
sbc (modified)
sfc (modified)
ir (modified)
irk (modified)
irl (modified)
iw (modified)
iwl (modified)
ia (modified)
in (modified)
io (modified)
dc (modified)
dcs (modified)
di (modified)
dr (modified)
ds (modified)
de (modified)
des (modified)
df (modified)
dfs (modified)
dm (modified)
dms (modified)
dp (modified)
dps (modified)
New snippets added
ie - Inserts else operator [Invoke Else]
ii - Inserts if operator [Invoke If]
all - Inserts All extension-method invocation
any - Inserts Any extension-method invocation
average - Inserts Average extension-method invocation
first - Inserts First extension-method invocation
last - Inserts Last extension-method invocation
max - Inserts Max extension-method invocation
min - Inserts Min extension-method invocation
orderby - Inserts OrderBy extension-method invocation
orderbydescending - Inserts OrderByDescending extension-method invocation
select - Inserts Select extension-method invocation
thenby - Inserts ThenBy extension-method invocation
thenbydescending - Inserts ThenByDescending extension-method invocation
where - Inserts Where extension-method invocation
if - Inserts for operator [Invoke For]
ife - Inserts foreach operator [Invoke ForEach]
dd - Inserts public delegate declaration [Declare Delegate]
Version 1.2
General
- Snippets made more concise.
Operators
ia : Inserts and operator
in : Inserts not operator
io : Inserts or operator
Type Declarations
dc : Inserts public class declaration
dcs : Inserts public static class declaration
di : Inserts public interface declaration
dr : Inserts public record declaration
ds : Inserts public struct declaration
Type Member Declarations
de : Inserts public instance event declaration
des : Inserts public static event declaration
df : Inserts public instance field declaration
dfs : Inserts public static field declaration
dm : Inserts public instance method declaration
dms : Inserts public static method declaration
dp : Inserts public instance auto property declaration
dps : Inserts public static auto property declaration
Version 1.1
Snippets added:
floatparse - Inserts float.Parse method invocation
doubleparse - Inserts double.Parse method invocation
boolparse - Inserts bool.Parse method invocation
bytetryparse - Inserts byte.TryParse method invocation
sbytetryparse - Inserts sbyte.TryParse method invocation
shorttryparse - Inserts short.TryParse method invocation
ushorttryparse - Inserts ushort.TryParse method invocation
inttryparse - Inserts int.TryParse method invocation
uinttryparse - Inserts uint.TryParse method invocation
longtryparse - Inserts long.TryParse method invocation
ulongtryparse - Inserts ulong.TryParse method invocation
floattryparse - Inserts float.TryParse method invocation
doubletryparse - Inserts double.TryParse method invocation
booltryparse - Inserts bool.TryParse method invocation
field - Inserts public instance field declaration
property - Inserts public instance auto property declaration
method - Inserts public instance method declaration
Version 1.0
Snippets added:
write - Inserts Console.Write method invocation
writeline - Inserts Console.WriteLine method invocation
read - Inserts Console.Read method invocation
readkey - Inserts Console.ReadKey method invocation
readline - Inserts Console.ReadLine method invocation
foregroundcolor - Inserts Console.ForegroundColor property assignment
backgroundcolor - Inserts Console.BackgroundColor property assignment
byteparse - Inserts byte.Parse method invocation
sbyteparse - Inserts sbyte.Parse method invocation
shortparse - Inserts short.Parse method invocation
ushortparse - Inserts ushort.Parse method invocation
intparse - Inserts int.Parse method invocation
uintparse - Inserts uint.Parse method invocation
longparse - Inserts long.Parse method invocation
ulongparse - Inserts ulong.Parse method invocation
| |