som changes for uniform look of snippets

This commit is contained in:
Gert 2015-03-27 11:19:57 +01:00
parent 21a683b04d
commit 41c1148f34

View File

@ -172,32 +172,32 @@ snippet ctor
# properties - auto properties by default.
# default type is int with layout get / set.
snippet prop
${1:public} ${2:int} ${3:} { get; set; }
${1:public} ${2:int} ${3} { get; set; }
snippet p
${1:public} ${2:int} ${3:} { get; set; }
${1:public} ${2:int} ${3} { get; set; }
snippet p+
public ${1:int} ${2:} { get; set; }
public ${1:int} ${2} { get; set; }
snippet p+&
public ${1:int} ${2:} { get; internal set; }
public ${1:int} ${2} { get; internal set; }
snippet p+|
public ${1:int} ${2:} { get; protected set; }
public ${1:int} ${2} { get; protected set; }
snippet p+-
public ${1:int} ${2:} { get; private set; }
public ${1:int} ${2} { get; private set; }
snippet p&
internal ${1:int} ${2:} { get; set; }
internal ${1:int} ${2} { get; set; }
snippet p&|
internal ${1:int} ${2:} { get; protected set; }
internal ${1:int} ${2} { get; protected set; }
snippet p&-
internal ${1:int} ${2:} { get; private set; }
internal ${1:int} ${2} { get; private set; }
snippet p|
protected ${1:int} ${2:} { get; set; }
protected ${1:int} ${2} { get; set; }
snippet p|-
protected ${1:int} ${2:} { get; private set; }
protected ${1:int} ${2} { get; private set; }
snippet p-
private ${1:int} ${2:} { get; set; }
private ${1:int} ${2} { get; set; }
# property - bool
snippet pi
${1:public} int ${2:} { get; set; }
${1:public} int ${2} { get; set; }
snippet pi+
public int ${1} { get; set; }
snippet pi+&
@ -220,7 +220,7 @@ snippet pi-
private int ${1} { get; set; }
# property - bool
snippet pb
${1:public} bool ${2:} { get; set; }
${1:public} bool ${2} { get; set; }
snippet pb+
public bool ${1} { get; set; }
snippet pb+&
@ -243,7 +243,7 @@ snippet pb-
private bool ${1} { get; set; }
# property - string
snippet ps
${1:public} string ${2:} { get; set; }
${1:public} string ${2} { get; set; }
snippet ps+
public string ${1} { get; set; }
snippet ps+&
@ -266,87 +266,87 @@ snippet ps-
private string ${1} { get; set; }
# members - void
snippet m
${1:public} ${2:void} ${3:}(${4:}) {
${5:}
${1:public} ${2:void} ${3}(${4}) {
${0}
}
snippet m+
public ${1:void} ${2:}(${3:}) {
${4:}
public ${1:void} ${2}(${3}) {
${0}
}
snippet m&
internal ${1:void} ${2:}(${3:}) {
${4:}
internal ${1:void} ${2}(${3}) {
${0}
}
snippet m|
protected ${1:void} ${2:}(${3:}) {
${4:}
protected ${1:void} ${2}(${3}) {
${0}
}
snippet m-
private ${1:void} ${2:}(${3:}) {
${4:}
private ${1:void} ${2}(${3}) {
${0}
}
# members - int
snippet mi
${1:public} int ${2:}(${3:}) {
${4:return 0;}
${1:public} int ${2}(${3}) {
${0:return 0;}
}
snippet mi+
public int ${1:}(${2:}) {
${3:return 0;}
public int ${1}(${2}) {
${0:return 0;}
}
snippet mi&
internal int ${1:}(${2:}) {
${3:return 0;}
internal int ${1}(${2}) {
${0:return 0;}
}
snippet mi|
protected int ${1:}(${2:}) {
${3:return 0;}
protected int ${1}(${2}) {
${0:return 0;}
}
snippet mi-
private int ${1:}(${2:}) {
${3:return 0;}
private int ${1}(${2}) {
${0:return 0;}
}
# members - bool
snippet mb
${1:public} bool ${2:}(${3:}) {
${4:return false;}
${1:public} bool ${2}(${3}) {
${0:return false;}
}
snippet mb+
public bool ${1:}(${2:}) {
${3:return false;}
public bool ${1}(${2}) {
${0:return false;}
}
snippet mb&
internal bool ${1:}(${2:}) {
${3:return false;}
internal bool ${1}(${2}) {
${0:return false;}
}
snippet mb|
protected bool ${1:}(${2:}) {
${3:return false;}
protected bool ${1}(${2}) {
${0:return false;}
}
snippet mb-
private bool ${1:}(${2:}) {
${3:return false;}
private bool ${1}(${2}) {
${0:return false;}
}
# members - string
snippet ms
${1:public} string ${2:}(${3:}) {
${4:return "";}
${1:public} string ${2}(${3}) {
${0:return "";}
}
snippet ms+
public string ${1:}(${2:}) {
${3:return "";}
public string ${1}(${2}) {
${0:return "";}
}
snippet ms&
internal string ${1:}(${2:}) {
${3:return "";}
internal string ${1}(${2}) {
${0:return "";}
}
snippet ms|
protected string ${1:}(${2:}) {
${3:return "";}
${0:return "";}
}
snippet ms-
private string ${1:}(${2:}) {
${3:return "";}
private string ${1}(${2}) {
${0:return "";}
}
# structure
snippet struct
@ -412,8 +412,8 @@ snippet exc
# indexer
snippet index
public ${1:object} this[${2:int} index] {
get { ${3:} }
set { ${0:} }
get { ${0} }
set { ${0} }
}
# eventhandler
snippet inv
@ -424,12 +424,12 @@ snippet inv
# lock
snippet lock
lock (${1:this}) {
${0:}
${0}
}
# namespace
snippet namespace
namespace ${1:MyNamespace} {
${0:}
${0}
}
# property
snippet prop