I am trying to add a code snippet and I want this code to appear in a region. So I tried something like this in the snippet file.
<CodeSnippets
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>
rg
Code Snippet for Region
</Title>
<Shortcut>rg</Shortcut>
</Header>
<Snippet>
<References>
<Reference>
<Assembly>System.dll</Assembly>
</Reference>
</References>
<Code Language="CSharp">
<![CDATA[
#region MyRegion
// Some Code
#endregion
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
But when I use the code snippet rg, the region appears as expanded by default like this.
- #region MyRegion
// Some Code
#endregion
Is there any way I can get this region as collapsed by default like this?
+ MyRegion