Snippington C# Basic
VSCode extension for basic C# snippets.
Shortcuts
Prefix |
Description |
csp: class |
Public Class |
csp: prop |
Property |
csp: prop-readonly |
Read only property. |
csp: constructor |
Constructor. |
csp: class-instance |
Instance of a class. |
csp: record |
Record. |
csp: record-instance |
Instance of record. |
csp: interface |
Interface. |
csp: generic-list |
Generic List. |
csp: array-list |
Array List. |
csp: bit-array |
Bit Array. |
csp: console-write |
Console Write. |
csp: console-write-line |
Console Write Line. |
csp: pattern-match-variable |
Pattern Match Variable. |
csp: array-lambda |
Array Lambda. |
csp: lambda-statement |
Lambda statement. |
csp: lambda-expr |
Lambda Expression. |
csp: lambda-async |
Lambda Async. |
csp: lambda-query-count |
Lambda query. |
csp: lambda-natural |
Lambda natural. |
csp: lambda-explicit |
Lambda explicit. |
csp: for-loop |
For loop. |
csp: for-each |
For each. |
csp: do-while |
Do while. |
csp: while-loop |
While loop. |
csp: if-then-else |
If then else. |
csp: switch-case |
Switch case. |
csp: string-split |
String split. |
csp: string-interpolation |
String interpolation. |
csp: string-contains |
String contains. |
csp: string-startswith |
String starts with. |
csp: string-endswith |
String ends with. |
csp: typecast-explicit |
Typecast explicit. |
csp: dictionary |
Dictionary. |
csp: query |
Query. |
csp: array |
Array. |
csp: array-init |
Initialized array. |
csp: array-multi |
Multi-dimensional array. |
csp: array-multi-init |
Initialized multi-dimensional array. |
csp: array-arg |
Array as an argument. |
csp: try-parse |
Try parse. |
csp: indexer |
Indexer. |
csp: linq-import |
Linq import |
csp: linq-query |
Linq query |
csp: min-api-route-get |
C# Minimal API GET route |
csp: min-api-route-post |
C# Minimal API POST route |
csp: min-api-route-put |
C# Minimal API PUT route |
csp: min-api-route-del |
C# Minimal API DELETE route |
csp: min-api-route-params |
C# Minimal API Route with parameters |
| |