Last active
October 16, 2017 07:19
-
-
Save krcourville/5966257 to your computer and use it in GitHub Desktop.
Snippet for JavaScript regions. Place in your personal My Snippets folder (Documents/Visual Studio xxxx) or the global folder: \Program Files (x86)\Microsoft Visual Studio xx.x\JavaScript\Snippets\1033\JavaScript
This file contains hidden or 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
| <CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| <Header> | |
| <Title>region</Title> | |
| <Author>Ken Courville</Author> | |
| <Shortcut>try</Shortcut> | |
| <Description>Code snippet for a region statement</Description> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> | |
| <SnippetType>SurroundsWith</SnippetType> | |
| </SnippetTypes> | |
| </Header> | |
| <Snippet> | |
| <Declarations> | |
| <Literal> | |
| <ID>name</ID> | |
| <ToolTip>Region Name</ToolTip> | |
| <Default>MyRegion</Default> | |
| </Literal> | |
| </Declarations> | |
| <Code Language="JavaScript"><![CDATA[//#region $name$ | |
| $selected$ | |
| //#endregion | |
| ]]></Code> | |
| </Snippet> | |
| </CodeSnippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please change the
tryshortcut toregion