Coder Social home page Coder Social logo

sublime-csharpe-snippets's Introduction

CSharpSnippets

C# snippets for Sublime Text.

Installation

From Package Control

Recommended method of installation. Search for C# Snippets or just C#.

Linux

git clone git://github.com/zeuslfhj/CSharpSnippets.git ~/.config/sublime-text-3/Packages

OSX

git clone git://github.com/zeuslfhj/CSharpSnippets.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages2/CSharpSnippets

Windows

git clone git://github.com/zeuslfhj/CSharpSnippets.git %userprofile%\AppData\Roaming\Sublime Text 3\Packages

Code Snippets

[case] Case

case ${1:Constant}:
  ${0}
  break;

[class] Class

${1:public} class ${2:ClassName} {
  ${0}
}

[ctor] Constructor

${1:public} ${2:ClassName} (${3:Parameters}) {
  ${0}
}

[default] Default

default:
  ${0}
  break;

[delegate] Delegate

public delegate ${1:ReturnType} ${2:DelegateName}(${3:Parameters});

[else] Else

else {
	${0}
}

[elseif] Else If

else if (${1:Condition}) {
	${0}
}

[for] For

for (${1:Initializer}; ${2:Condition}; ${3:Update}) {
	${0}
}

[fact] xUnit Test Method

[Fact]
${1:public} void ${2:TestName}() {
	//Given

	//When

	//Then
}${0}

[foreach] ForEach

foreach (${1:Type} in ${2:Collection}) {
	${0}
}

[if] If

if (${1:Condition}) {
	${0}
}

[interface] Interface

interface ${1:InterfaceName} {
	${0}
}

[ns] Namespace

namespace ${1:NamespaceName} {
	${0}
}

[pm] Private Method

private ${1:ReturnType} ${2:MethodName}(${3:Parameters}) {
	${0}
}

[pr] Property (Read-Only)

${3:public} ${1:Type} ${2:PropertyName} {
	get;
	private set;
}${0}

[prop] Property (Read-Write)

${1:public} ${2:Type} ${3:PropertyName} { get; set; }${0}

[pum] Public Method

public ${1:ReturnType} ${2:MethodName}(${3:Parameters}) {
	${0}
}

[struct] Struct

${1:public} struct ${2:StructName} {
	${0}
}

[switch] Switch

switch (${1:Expression}) {
	${0}
}

[try] Try / Catch / Finally

try {
	${1}
} catch {${2:System.Exception} e) {
	${3}
} finally {
	${0}
}

[us] Using

using ${1:System};

[while] While

while (${1:Condition}) {
	${0}
}

[enum] Enum

public enum ${1:variable} {
	${0}
}

Documentation Snippets

[c] C documentation tag

<c>${1}</c>

[code] Code documentation tag

/// <code>
/// ${1}
/// </code>

[example] Example documentation tag

/// <example>
/// ${1}
/// </example>

[exception] Exception documentation tag

/// <exception cref="${1:member}">${2}</exception>

[include] Include documentation tag

/// <include file='${1:filepath}' path='${2:tagpath}[@${3:name}="${4}"]' />

[list] List documentation tag

/// <list type="{1:type}">
/// ${2}
/// </list>

[description] List description documentation tag

/// <description>${1}</description>

[listheader] Listheader documentation tag

/// <listheader>
/// ${1}
/// </listheader>

[item] List item documentation tag

/// <item>
/// ${1}
/// </item>

[term] List term documentation tag

/// <term>${1}</term>

[para] Para documentation tag

/// <para>${1}</para>

[param] Param documentation tag

/// <param name="${1:name}">${2}</param>

[paramref] Paramref documentation tag

/// <paramref name="${1:name}"/>

[permission] Permission documentation tag

/// <permission cref="${1:member}">$2}</permission>

[remarks] Remarks documentation tag

/// <remarks>
/// ${1}
/// </remarks>

[returns] Returns documentation tag

/// <returns>${1}</returns>

[see] See documentation tag

<see cref="${1:member}" />

[seealso] Seealso documentation tag

/// <seealso cref="${1:member}" />

[summary] Summary documentation tag

/// <summary>
/// ${1}
/// </summary>

[typeparam] Typeparam documentation tag

/// <typeparam name="${1:name}">${2}</typeparam>

[typeparamref] Typeparamref documentation tag

<typeparamref name="${1:name}" />

[value] Value documentation tag

/// <value>${1}</value>

License

MIT

sublime-csharpe-snippets's People

Watchers

 avatar

Forkers

okfly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.