C# snippets for Sublime Text.
Recommended method of installation. Search for C# Snippets or just C#.
git clone git://github.com/zeuslfhj/CSharpSnippets.git ~/.config/sublime-text-3/Packages
git clone git://github.com/zeuslfhj/CSharpSnippets.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages2/CSharpSnippets
git clone git://github.com/zeuslfhj/CSharpSnippets.git %userprofile%\AppData\Roaming\Sublime Text 3\Packages
case ${1:Constant}:
${0}
break;
${1:public} class ${2:ClassName} {
${0}
}
${1:public} ${2:ClassName} (${3:Parameters}) {
${0}
}
default:
${0}
break;
public delegate ${1:ReturnType} ${2:DelegateName}(${3:Parameters});
else {
${0}
}
else if (${1:Condition}) {
${0}
}
for (${1:Initializer}; ${2:Condition}; ${3:Update}) {
${0}
}
[Fact]
${1:public} void ${2:TestName}() {
//Given
//When
//Then
}${0}
foreach (${1:Type} in ${2:Collection}) {
${0}
}
if (${1:Condition}) {
${0}
}
interface ${1:InterfaceName} {
${0}
}
namespace ${1:NamespaceName} {
${0}
}
private ${1:ReturnType} ${2:MethodName}(${3:Parameters}) {
${0}
}
${3:public} ${1:Type} ${2:PropertyName} {
get;
private set;
}${0}
${1:public} ${2:Type} ${3:PropertyName} { get; set; }${0}
public ${1:ReturnType} ${2:MethodName}(${3:Parameters}) {
${0}
}
${1:public} struct ${2:StructName} {
${0}
}
switch (${1:Expression}) {
${0}
}
try {
${1}
} catch {${2:System.Exception} e) {
${3}
} finally {
${0}
}
using ${1:System};
while (${1:Condition}) {
${0}
}
public enum ${1:variable} {
${0}
}
<c>${1}</c>
/// <code>
/// ${1}
/// </code>
/// <example>
/// ${1}
/// </example>
/// <exception cref="${1:member}">${2}</exception>
/// <include file='${1:filepath}' path='${2:tagpath}[@${3:name}="${4}"]' />
/// <list type="{1:type}">
/// ${2}
/// </list>
/// <description>${1}</description>
/// <listheader>
/// ${1}
/// </listheader>
/// <item>
/// ${1}
/// </item>
/// <term>${1}</term>
/// <para>${1}</para>
/// <param name="${1:name}">${2}</param>
/// <paramref name="${1:name}"/>
/// <permission cref="${1:member}">$2}</permission>
/// <remarks>
/// ${1}
/// </remarks>
/// <returns>${1}</returns>
<see cref="${1:member}" />
/// <seealso cref="${1:member}" />
/// <summary>
/// ${1}
/// </summary>
/// <typeparam name="${1:name}">${2}</typeparam>
<typeparamref name="${1:name}" />
/// <value>${1}</value>
MIT