Last active
August 29, 2015 14:13
-
-
Save marcind/420edc1b3953b82ec45a to your computer and use it in GitHub Desktop.
Visual Studio code snippet for #pragma warning disable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>#pragma</Title> | |
<Shortcut>#pragma</Shortcut> | |
<Description>Code snippet for #pragma warning snippet</Description> | |
<Author>Marcin Dobosz</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
<SnippetType>SurroundsWith</SnippetType> | |
</SnippetTypes> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>warningList</ID> | |
<ToolTip>Comma-separated list of warning numbers</ToolTip> | |
<Default>612</Default> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp"><![CDATA[#pragma warning disable $warningList$ | |
$selected$$end$ | |
#pragma warning restore $warningList$]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment