Skip to content

Instantly share code, notes, and snippets.

@lcaballero
Created March 5, 2012 07:16
Show Gist options
  • Save lcaballero/1977183 to your computer and use it in GitHub Desktop.
Save lcaballero/1977183 to your computer and use it in GitHub Desktop.
Visual Studio snippet xml that expands and surrounds for a console.xxx( | ) call
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<!-- JS console Snippet -->
<Header>
<Title>console</Title>
<Author>Lucas Caballero</Author>
<Shortcut>console</Shortcut>
<Description>Markup snippet for console</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>debug</ID>
<ToolTip>One of: log, info, dir, etc.</ToolTip>
<Default>log</Default>
</Literal>
<Literal>
<ID>selected</ID>
<ToolTip>content</ToolTip>
<Default>content</Default>
</Literal>
</Declarations>
<Code Language="jscript"><![CDATA[console.$debug$( $selected$$end$ )]]></Code>
</Snippet>
</CodeSnippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment