Code snippets for methods in Visual Studio

Edward Tanguay picture Edward Tanguay · Nov 15, 2008 · Viewed 61.9k times · Source

In Visual Studio I can type e.g.

for TAB TAB

and a code snippet pops in.

Are there built-in code snippets for private, public, etc. methods as well?

Answer

Cameron MacFarland picture Cameron MacFarland · Nov 15, 2008

ctor: Default constructor

prop: Property

propg: Read-only property

sim: static int main method

svm: static void main method

There's a good list here. And if you want to make your own, the Snippet Designer is very good.

Here are all the Visual C# code snippets for Visual Studio 2017