Skip to content
Snippets Groups Projects
Commit 49fc0dc9 authored by areynold's avatar areynold
Browse files

Add snippets

parent dcfc3369
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,21 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="CSharp\Beckman\idisposable.snippet">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="HTML\Beckman\h3.snippet">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="HTML\Beckman\li.snippet">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="HTML\Beckman\p.snippet">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="HTML\Beckman\strong.snippet">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
......
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>IDisposable</Title>
<Author>Andrew Reynolds</Author>
<Description>Generic implementation of IDisposable methods.</Description>
<Keywords>
<Keyword>disposable</Keyword>
<Keyword>dispose</Keyword>
<Keyword>idisposable</Keyword>
</Keywords>
<Shortcut>idisp</Shortcut>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>classname</ID>
<ToolTip>Class name.</ToolTip>
<Function>ClassName()</Function>
</Literal>
</Declarations>
<Code Language="CSharp">
<![CDATA[
private bool _disposed;
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
~$classname$()
{
Dispose(false);
}
protected virtual void Dispose(bool disposing)
{
if (_disposed)
return;
if (disposing)
{
// Free objects that implement IDisposable.
}
// Release unmanaged objects by setting object references to null.
_disposed = true;
}
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>h3</Title>
<Author>Andrew Reynolds</Author>
<Shortcut>strong</Shortcut>
<Description>Wrap selection in an H3 tag.</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>selected</ID>
<ToolTip>content</ToolTip>
<Default>content</Default>
</Literal>
</Declarations>
<Code Language="html"><![CDATA[<h3>$selected$</h3>$end$]]></Code>
</Snippet>
</CodeSnippet>
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>li</Title>
<Author>Andrew Reynolds</Author>
<Shortcut>li</Shortcut>
<Description>Wrap in a li</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>selected</ID>
<ToolTip>content</ToolTip>
<Default>content</Default>
</Literal>
</Declarations>
<Code Language="html"><![CDATA[<li>$selected$</li>$end$]]></Code>
</Snippet>
</CodeSnippet>
\ No newline at end of file
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>p snippet</Title>
<Author>Andrew Reynolds</Author>
<Shortcut>p</Shortcut>
<Description>Wrap in a p tag</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>selected</ID>
<ToolTip>content</ToolTip>
<Default>content</Default>
</Literal>
</Declarations>
<Code Language="html"><![CDATA[<p>$selected$</p>$end$]]></Code>
</Snippet>
</CodeSnippet>
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>strong</Title>
<Author>Andrew Reynolds</Author>
<Shortcut>strong</Shortcut>
<Description>Wrap in a strong tag</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>selected</ID>
<ToolTip>content</ToolTip>
<Default>content</Default>
</Literal>
</Declarations>
<Code Language="html"><![CDATA[<strong>$selected$</strong>$end$]]></Code>
</Snippet>
</CodeSnippet>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment