Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In VS go to Tools -> Code Snippet Manager and select Visual c#. Navigate to show path it should be simular to this:</p> <pre><code>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC#\Snippets\1033\Visual C# or C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC#\Snippets\1033\Visual C# </code></pre> <p>Before changing something in there I recommend to close VS. Create a new File named 'TheRegions.snippet' and insert this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"&gt; &lt;CodeSnippet Format="1.0.0"&gt; &lt;Header&gt; &lt;Title&gt;TheRegions&lt;/Title&gt; &lt;Shortcut&gt;TheRegions&lt;/Shortcut&gt; &lt;Description&gt;Codesnippet&lt;/Description&gt; &lt;Author&gt;Authorname&lt;/Author&gt; &lt;SnippetTypes&gt; &lt;SnippetType&gt;Expansion&lt;/SnippetType&gt; &lt;/SnippetTypes&gt; &lt;/Header&gt; &lt;Snippet&gt; &lt;Declarations&gt; &lt;Literal Editable="false"&gt; &lt;ID&gt;classname&lt;/ID&gt; &lt;ToolTip&gt;ClassName&lt;/ToolTip&gt; &lt;Function&gt;ClassName()&lt;/Function&gt; &lt;Default&gt;ClassNamePlaceholder&lt;/Default&gt; &lt;/Literal&gt; &lt;/Declarations&gt; &lt;Code Language="csharp"&gt;&lt;![CDATA[ #region Properties #endregion #region Initialization public $classname$ () { } ~$classname$() { } #endregion #region Events #endregion #region Methods #endregion ]]&gt; &lt;/Code&gt; &lt;/Snippet&gt; &lt;/CodeSnippet&gt; &lt;/CodeSnippets&gt; </code></pre> <p>Copy that file the location, startup VS and type 'TheRegions' intellisense should come up. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload