Skip to content

Commit 8333d54

Browse files
AspenForesterrjmholt
authored andcommitted
Add param-block snippet (PowerShell#2081)
1 parent 21645ff commit 8333d54

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

snippets/PowerShell.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,17 @@
592592
],
593593
"description": "Parameter declaration snippet"
594594
},
595+
"Parameter_Block" : {
596+
"prefix": "param-block",
597+
"body": ["[CmdletBinding()]",
598+
"param (",
599+
" [Parameter()]",
600+
" [${1:TypeName}]",
601+
" $${2:ParameterName}$0",
602+
")"
603+
],
604+
"description": "A Parameter block to get you started."
605+
},
595606
"Parameter-Path": {
596607
"prefix": "parameter-path",
597608
"body": [

0 commit comments

Comments
 (0)