C# code snippets for Visual Studio.
shortcut | description |
---|---|
single | apply singleton pattern to a class. |
cctor | create copy constructor. |
func | create editable functuion. |
afunc | create editable async function. |
cr | snippet for Console.ReadLine(). |
cs | snippet for adding console seperator line. |
- save Snippets folder on your machine.
- open Visual Studio.
- go to Tools > Code Snippets Manager.
- on the Code Snippets Manager window make sure to select CSharp from the Language drop down list then click Add.
- select the Snippets folder you saved lately then press Ok.
- restart Visual Studio.