Skip to content

Edited Snippet to fix issue #1353 #1354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion snippets/PowerShell.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down