We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38af1ff commit db4745cCopy full SHA for db4745c
snippets/PowerShell.json
@@ -411,6 +411,20 @@
411
],
412
"description": "Param declaration with mandatory parameters"
413
},
414
+ "try-catch": {
415
+ "prefix": "try-catch",
416
+ "body": [
417
+ "try",
418
+ "{",
419
+ "\t$1",
420
+ "}",
421
+ "catch [${exception:System.Exception}]",
422
423
+ "\t$2",
424
+ "}"
425
+ ],
426
+ "description": "try-catch exception handling"
427
+ },
428
"try-catch-finally": {
429
"prefix": "try-catch-finally",
430
"body": [
0 commit comments