Programmer's Rules


How to use a code snippet for a property declaration inside a class in Visual C#

Simple example of how to use a code snippet generation in C# with Visual Studio 2017

C#Visual Studio

Tested for: Visual Studio 2017

1. Inside a class write: prop as shown in the picture

Visual Studio 2017 C# property declaration

2. Next press Tab button twice to achieve the following code:

Property created in Visual Studio 2017 C#

Tutorial statistics