Skip to content

Instantly share code, notes, and snippets.

@Mds92
Last active April 13, 2018 03:31
Show Gist options
  • Save Mds92/7fdd3a9cf4bdab4d259330fbc307a2f0 to your computer and use it in GitHub Desktop.
Save Mds92/7fdd3a9cf4bdab4d259330fbc307a2f0 to your computer and use it in GitHub Desktop.
Code snippet for methods in Visual Studio C#
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>method</Title>
<Author>Mohammad Dayyan</Author>
<Description>Code snippet for method</Description>
<HelpUrl>
</HelpUrl>
<Shortcut>method</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>methodName</ID>
<ToolTip>Method name</ToolTip>
<Default>MethodNamePlaceholder</Default>
<Function>MethodName()</Function>
</Literal>
</Declarations>
<Code Language="csharp" Delimiter="$"><![CDATA[public void $methodName$ ()
{
$end$
}]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment