Skip to content

Instantly share code, notes, and snippets.

@rzvdaniel
Created March 25, 2019 11:22
Show Gist options
  • Save rzvdaniel/f0646f1e4f45f18b003d75486dafc613 to your computer and use it in GitHub Desktop.
Save rzvdaniel/f0646f1e4f45f18b003d75486dafc613 to your computer and use it in GitHub Desktop.
Surround With Braces Visual Studio Snippet
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>braces</Title>
<Shortcut>braces</Shortcut>
<Description>Code snippet to surround a block of code with braces</Description>
<Author>Igor Zevaka</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Code Language="csharp">
<![CDATA[{
$selected$ $end$
}]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
@rzvdaniel
Copy link
Author

Install it in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC#\Snippets\1033\Visual C# to avoid another snippet folder to show up in VS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment