Using code snippets in Visual Studio with C#

I know snippets have been around for a long time but how many people use them and how many people know about them?

I find them a very useful time saver when writing a new class for example. If I want to write a new property with a GET and SET I can do this by simply writing prop as shown in the image below.

An Example of using prop snippets in visual studio
How to use prop snippet in visual studio

I use propfull which gives me the private variable and then a public GET and SET which will honestly save around a minute compared to typing this out manually. This is what you get with propfull.

An example of propfull snippet
This is the output for propfull

There are a lot of other snippets that can be used, you can find the full list of them here

Leave a Reply