How to use Visual Studio Snippets
Tags:
Snippets are a fast and intuitive way to write ripetitive code in your project.
Let’s try the prop snippet to write a property.
Write prop in the code:

Press tab twice (only one time if Intellisense didn’t appears)

The property stub magically appeared! Now let’s write the type of our variable, eg bool
Let’s tab again to move to the variable name

Note the variable type updated on the fly in the property definition.
Write the private variable name.

Tab again, and write the property name.

It’s time for a return to complete the property ![]()

Se sei interessato a questo post, potresti anche provare a leggere:
- No related posts
18 Mar 2007 dzamir