Space | Shortcut | Code | Imported namespace | Filename |
---|---|---|---|---|
AutoMapper | am | AutoMapper custom mapping |
- | am.snippet |
ami | AutoMapper Ignore |
- | ami.snippet | |
Console | cwl | Console.Write(); |
System | Console.Write.snippet |
crl | Console.Read(); |
System | Console.Read.snippet | |
cr | Console.ReadLine(); |
System | Console.ReadLine.snippet | |
dwl | Debug.Write(); |
System.Diagnostics | Debug.Write.snippet | |
dw | Debug.WriteLine(); |
System.Diagnostics | Debug.WriteLine.snippet | |
EntityFramework | efprop | EF property configuration |
- | efprop.snippet |
efstr | EF string configuration |
- | efstr.snippet | |
efone | EF reference configuration |
- | efone.snippet | |
Properties | sj | string.Join() |
- | string.Join.snippet |
sprop | static auto property |
- | sprop.snippet | |
propi | init auto property |
- | propi.snippet | |
rprop | required auto property |
- | rprop.snippet | |
Types | itp | int.TryParse() |
- | int.TryParse.snippet |
dtp | double.TryParse() |
- | double.TryParse.snippet | |
tp | type.TryParse() |
- | type.TryParse.snippet | |
parse | type.Parse() |
- | type.Parse.snippet | |
sctor | static ClassName {} |
- | sctor.snippet | |
typepat | Type pattern |
- | typepat.snippet | |
Wpf | dp | DependencyProperty... |
System.Windows | dp.snippet |
inpc | INPC implementation |
System.Runtime.CompilerServices | inpc.snippet |
- Download files with snippets from this repository
- Open Visual Studio
- Find menu "Tools" and click to "Code Snippets Manager..." or push keys Ctrl+K + Ctrl+B
- In Code Snippets Manager push button "Import..." (or push button "Add")
- Select downloaded files
- Click "Ok"
- Try to use the code snippets using the hotkeys shown in the table above
- Enjoy!