diff --git a/snippets/PowerShell.json b/snippets/PowerShell.json index 9fb4d01ee1..e02f9f76c2 100644 --- a/snippets/PowerShell.json +++ b/snippets/PowerShell.json @@ -762,12 +762,24 @@ }, "function": { "prefix": "function", + "body": [ + "function ${1:FunctionName} {", + "\tparam (", + "\t ${2:OptionalParameters}", + "\t)", + "\t$0", + "}" + ], + "description": "Function definition snippet that contains a param block" + }, + "Function-Inline": { + "prefix": "Function-Inline", "body": [ "function ${1:FunctionName} (${2:OptionalParameters}) {", "\t$0", "}" ], - "description": "function definition snippet" + "description": "Function definition snippet that does not contain a param block, but defines parameters inline. This syntax is commonly used in other lanaguages" }, "if": { "prefix": "if",