Last active
July 6, 2016 16:10
-
-
Save gerane/7198bb98485479ebbd8277803b748139 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Type : Object | |
HasValues : True | |
First : {} | |
Last : {} | |
Count : 3 | |
Parent : {"prefix": "func" "body": [ | |
/* Test Comment*/ | |
"function ${name:Verb-Noun}", | |
"{", | |
"\t[CmdletBinding()]", | |
"\tparam", | |
"\t(", | |
"\t\t$0", | |
"\t)", | |
"\t", | |
"\tBegin", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"\t", | |
"\tProcess", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"\t", | |
"\tEnd", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"}" | |
] "description": "Creates a Function"} | |
Root : {function, parameter, If statement} | |
Next : | |
Previous : | |
Path : function | |
LineNumber : 16 | |
LinePosition : 17 | |
IsReadOnly : False | |
AllowNew : True | |
AllowEdit : True | |
AllowRemove : True | |
SupportsChangeNotification : True | |
SupportsSearching : False | |
SupportsSorting : False | |
IsSorted : False | |
SortProperty : | |
SortDirection : Ascending | |
IsFixedSize : False | |
SyncRoot : System.Object | |
IsSynchronized : False | |
Keys : {prefix, body, description} | |
Type : Object | |
HasValues : True | |
First : {} | |
Last : {} | |
Count : 3 | |
Parent : {"prefix": "par" "body": [ | |
"[Parameter(${AttributeValues})]", | |
"[${Type}]$${Name}" | |
] "description": "parameter and parameter type"} | |
Root : {function, parameter, If statement} | |
Next : | |
Previous : | |
Path : parameter | |
LineNumber : 47 | |
LinePosition : 18 | |
IsReadOnly : False | |
AllowNew : True | |
AllowEdit : True | |
AllowRemove : True | |
SupportsChangeNotification : True | |
SupportsSearching : False | |
SupportsSorting : False | |
IsSorted : False | |
SortProperty : | |
SortDirection : Ascending | |
IsFixedSize : False | |
SyncRoot : System.Object | |
IsSynchronized : False | |
Keys : {prefix, body, description} | |
Type : Object | |
HasValues : True | |
First : {} | |
Last : {} | |
Count : 3 | |
Parent : {"prefix": "if" "body": [ | |
"if (${$variable})", | |
"{", | |
"\t$0", | |
"}" | |
] "description": "If statement"} | |
Root : {function, parameter, If statement} | |
Next : | |
Previous : | |
Path : ['If statement'] | |
LineNumber : 56 | |
LinePosition : 21 | |
IsReadOnly : False | |
AllowNew : True | |
AllowEdit : True | |
AllowRemove : True | |
SupportsChangeNotification : True | |
SupportsSearching : False | |
SupportsSorting : False | |
IsSorted : False | |
SortProperty : | |
SortDirection : Ascending | |
IsFixedSize : False | |
SyncRoot : System.Object | |
IsSynchronized : False | |
Keys : {prefix, body, description} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"function": { | |
"prefix": "func", | |
"body": [ | |
/* Test Comment*/ | |
"function ${name:Verb-Noun}", | |
"{", | |
"\t[CmdletBinding()]", | |
"\tparam", | |
"\t(", | |
"\t\t$0", | |
"\t)", | |
"\t", | |
"\tBegin", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"\t", | |
"\tProcess", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"\t", | |
"\tEnd", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"}" | |
], | |
"description": "Creates a Function" | |
}, | |
"parameter": { | |
"prefix": "par", | |
"body": [ | |
"[Parameter(${AttributeValues})]", | |
"[${Type}]$${Name}" | |
], | |
"description": "parameter and parameter type" | |
}, | |
"If statement": { | |
"prefix": "if", | |
"body": [ | |
"if (${$variable})", | |
"{", | |
"\t$0", | |
"}" | |
], | |
"description": "If statement" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for PowerShell here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
], | |
"description": "Log output to console" | |
} | |
*/ | |
"function": { | |
"prefix": "func", | |
"body": [ | |
// Test Comment | |
"function ${name:Verb-Noun}", | |
"{", | |
"\t[CmdletBinding()]", | |
"\tparam", | |
"\t(", | |
"\t\t$0", | |
"\t)", | |
"\t", | |
"\tBegin", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"\t", | |
"\tProcess", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"\t", | |
"\tEnd", | |
"\t{", | |
"\t\t", | |
"\t}", | |
"}" | |
], | |
"description": "Creates a Function" | |
}, | |
"parameter": { | |
"prefix": "par", | |
"body": [ | |
"[Parameter(${AttributeValues})]", | |
"[${Type}]$${Name}" | |
], | |
"description": "parameter and parameter type" | |
}, | |
"If statement": { | |
"prefix": "if", | |
"body": [ | |
"if (${$variable})", | |
"{", | |
"\t$0", | |
"}" | |
], | |
"description": "If statement" | |
} | |
} | |
// "name": { | |
// "prefix": "", | |
// "body": [ | |
// "" | |
// ], | |
// "description": "" | |
// } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment