Skip to content

Commit daef966

Browse files
Benny1007TylerLeonhardt
authored andcommitted
Fix #1177 - Added function-advanced snippet (#1182)
1 parent cb1515f commit daef966

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

snippets/PowerShell.json

+21
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,27 @@
533533
],
534534
"description": "Script cmdlet definition snippet"
535535
},
536+
"Function-Advanced": {
537+
"prefix": "function-advanced",
538+
"body": [
539+
"function ${1:Verb-Noun} {",
540+
"\t[CmdletBinding()]",
541+
"\tparam (",
542+
"\t\t$0",
543+
"\t)",
544+
"\t",
545+
"\tbegin {",
546+
"\t}",
547+
"\t",
548+
"\tprocess {",
549+
"\t}",
550+
"\t",
551+
"\tend {",
552+
"\t}",
553+
"}"
554+
],
555+
"description": "Script advanced function definition snippet"
556+
},
536557
"Cmdlet-Comment-Help": {
537558
"prefix": "comment-help",
538559
"body": [

0 commit comments

Comments
 (0)