Skip to content

Commit 41470bc

Browse files
AspenForesterrjmholt
authored andcommitted
Add param-block snippet (PowerShell#2081)
1 parent 2f70679 commit 41470bc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

snippets/PowerShell.json

+11
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,17 @@
571571
],
572572
"description": "Parameter declaration snippet"
573573
},
574+
"Parameter_Block" : {
575+
"prefix": "param-block",
576+
"body": ["[CmdletBinding()]",
577+
"param (",
578+
" [Parameter()]",
579+
" [${1:TypeName}]",
580+
" $${2:ParameterName}$0",
581+
")"
582+
],
583+
"description": "A Parameter block to get you started."
584+
},
574585
"Parameter-Path": {
575586
"prefix": "parameter-path",
576587
"body": [

0 commit comments

Comments
 (0)