Merge pull request #117 from phenwoods/master

Fix indentation in cs file
This commit is contained in:
Honza Pokorny 2012-07-04 17:48:33 -07:00
commit a558a9787b

View File

@ -59,28 +59,28 @@
# entry point # entry point
snippet sim snippet sim
public static int Main(string[] args) { public static int Main(string[] args) {
${1} ${1}
return 0; return 0;
} }
snippet simc snippet simc
public class Application { public class Application {
public static int Main(string[] args) { public static int Main(string[] args) {
${1} ${1}
return 0; return 0;
} }
} }
# if condition # if condition
snippet if snippet if
if (${1}) { if (${1}) {
${2} ${2}
} }
snippet el snippet el
else { else {
${1} ${1}
} }
snippet ifs snippet ifs
if (${1}) if (${1})
${2} ${2}
# ternary conditional # ternary conditional
snippet t snippet t
${1} ? ${2} : ${3} ${1} ? ${2} : ${3}
@ -89,77 +89,77 @@ snippet ?
# do while loop # do while loop
snippet do snippet do
do { do {
${2} ${2}
} while (${1}); } while (${1});
# while loop # while loop
snippet wh snippet wh
while (${1}) { while (${1}) {
${2} ${2}
} }
# for loop # for loop
snippet for snippet for
for (int ${1:i} = 0; $1 < ${2:count}; $1${3:++}) { for (int ${1:i} = 0; $1 < ${2:count}; $1${3:++}) {
${4} ${4}
} }
# foreach # foreach
snippet fore snippet fore
foreach (var ${1:entry} in ${2}) { foreach (var ${1:entry} in ${2}) {
${3} ${3}
} }
snippet foreach snippet foreach
foreach (var ${1:entry} in ${2}) { foreach (var ${1:entry} in ${2}) {
${3} ${3}
} }
snippet each snippet each
foreach (var ${1:entry} in ${2}) { foreach (var ${1:entry} in ${2}) {
${3} ${3}
} }
# interfaces # interfaces
snippet interface snippet interface
public interface ${1:`Filename()`} { public interface ${1:`Filename()`} {
${2} ${2}
} }
snippet if+ snippet if+
public interface ${1:`Filename()`} { public interface ${1:`Filename()`} {
${2} ${2}
} }
# class bodies # class bodies
snippet class snippet class
public class ${1:`Filename()`} { public class ${1:`Filename()`} {
${2} ${2}
} }
snippet cls snippet cls
${2:public} class ${1:`Filename()`} { ${2:public} class ${1:`Filename()`} {
${3} ${3}
} }
snippet cls+ snippet cls+
public class ${1:`Filename()`} { public class ${1:`Filename()`} {
${2} ${2}
} }
snippet cls+^ snippet cls+^
public static class ${1:`Filename()`} { public static class ${1:`Filename()`} {
${2} ${2}
} }
snippet cls& snippet cls&
internal class ${1:`Filename()`} { internal class ${1:`Filename()`} {
${2} ${2}
} }
snippet cls&^ snippet cls&^
internal static class ${1:`Filename()`} { internal static class ${1:`Filename()`} {
${2} ${2}
} }
snippet cls| snippet cls|
protected class ${1:`Filename()`} { protected class ${1:`Filename()`} {
${2} ${2}
} }
snippet cls|% snippet cls|%
protected abstract class ${1:`Filename()`} { protected abstract class ${1:`Filename()`} {
${2} ${2}
} }
# constructor # constructor
snippet ctor snippet ctor
public ${1:`Filename()`}() { public ${1:`Filename()`}() {
${2} ${2}
} }
# properties - auto properties by default. # properties - auto properties by default.
# default type is int with layout get / set. # default type is int with layout get / set.
@ -259,101 +259,101 @@ snippet ps-
# members - void # members - void
snippet m snippet m
${1:public} ${2:void} ${3:}(${4:}) { ${1:public} ${2:void} ${3:}(${4:}) {
${5:} ${5:}
} }
snippet m+ snippet m+
public ${1:void} ${2:}(${3:}) { public ${1:void} ${2:}(${3:}) {
${4:} ${4:}
} }
snippet m& snippet m&
internal ${1:void} ${2:}(${3:}) { internal ${1:void} ${2:}(${3:}) {
${4:} ${4:}
} }
snippet m| snippet m|
protected ${1:void} ${2:}(${3:}) { protected ${1:void} ${2:}(${3:}) {
${4:} ${4:}
} }
snippet m- snippet m-
private ${1:void} ${2:}(${3:}) { private ${1:void} ${2:}(${3:}) {
${4:} ${4:}
} }
# members - int # members - int
snippet mi snippet mi
${1:public} int ${2:}(${3:}) { ${1:public} int ${2:}(${3:}) {
${4:return 0;} ${4:return 0;}
} }
snippet mi+ snippet mi+
public int ${1:}(${2:}) { public int ${1:}(${2:}) {
${3:return 0;} ${3:return 0;}
} }
snippet mi& snippet mi&
internal int ${1:}(${2:}) { internal int ${1:}(${2:}) {
${3:return 0;} ${3:return 0;}
} }
snippet mi| snippet mi|
protected int ${1:}(${2:}) { protected int ${1:}(${2:}) {
${3:return 0;} ${3:return 0;}
} }
snippet mi- snippet mi-
private int ${1:}(${2:}) { private int ${1:}(${2:}) {
${3:return 0;} ${3:return 0;}
} }
# members - bool # members - bool
snippet mb snippet mb
${1:public} bool ${2:}(${3:}) { ${1:public} bool ${2:}(${3:}) {
${4:return false;} ${4:return false;}
} }
snippet mb+ snippet mb+
public bool ${1:}(${2:}) { public bool ${1:}(${2:}) {
${3:return false;} ${3:return false;}
} }
snippet mb& snippet mb&
internal bool ${1:}(${2:}) { internal bool ${1:}(${2:}) {
${3:return false;} ${3:return false;}
} }
snippet mb| snippet mb|
protected bool ${1:}(${2:}) { protected bool ${1:}(${2:}) {
${3:return false;} ${3:return false;}
} }
snippet mb- snippet mb-
private bool ${1:}(${2:}) { private bool ${1:}(${2:}) {
${3:return false;} ${3:return false;}
} }
# members - string # members - string
snippet ms snippet ms
${1:public} string ${2:}(${3:}) { ${1:public} string ${2:}(${3:}) {
${4:return "";} ${4:return "";}
} }
snippet ms+ snippet ms+
public string ${1:}(${2:}) { public string ${1:}(${2:}) {
${3:return "";} ${3:return "";}
} }
snippet ms& snippet ms&
internal string ${1:}(${2:}) { internal string ${1:}(${2:}) {
${3:return "";} ${3:return "";}
} }
snippet ms| snippet ms|
protected string ${1:}(${2:}) { protected string ${1:}(${2:}) {
${3:return "";} ${3:return "";}
} }
snippet ms- snippet ms-
private string ${1:}(${2:}) { private string ${1:}(${2:}) {
${3:return "";} ${3:return "";}
} }
# structure # structure
snippet struct snippet struct
public struct ${1:`Filename()`} { public struct ${1:`Filename()`} {
${2} ${2}
} }
# enumeration # enumeration
snippet enum snippet enum
public enum ${1} { public enum ${1} {
${2} ${2}
} }
# preprocessor directives # preprocessor directives
snippet #if snippet #if
#if #if
${1} ${1}
#endif #endif
# inline xml documentation # inline xml documentation
snippet /// snippet ///