2. Surrounds With
Code Snippet file start with CodeSnippets element which has xmlns attribute for snippet.
Step 2: Add CodeSnippet Section
Step 3: Add Header Section within Code Snippet Section.
Shortcut: when you type using Intelligence it will shows list of snippet including which you have created with given shortcut.
Description: Detailed description of snippet on Mouse Over of you snippet.
Snippet Type: which type of snippet are you going to create like Expansion (prop) or Surround with (try/catch).
Step 4: Create Declaration section and then add Literals or Objects within Declaration Section.
In the below code I have created Three Literals.
First Literal describes Type of property or variable, I have set Default value to int (you can give any datatypes including (double, bool ,string etc.)
Second Literal element is for editable name of Property.
Third Literal element has field, user can gives any variable name that used within property Get/Set.
Step 5: Code section describes the code for that snippets. In this snippet is added language is CSharp, Inside the Code element, add the C# code for the snippet.
Below is Full xml of Property block Snippet
Now you can use your snippet in development.
In that file start typing with you propmvvm
it will display list of IntelliSense code snippets including your snippetType propmvvm