Skip to content

Commit 38af1ff

Browse files
committed
Add snippet for methods of a class
1 parent 89f6488 commit 38af1ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

snippets/PowerShell.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,16 @@
375375
"}"
376376
],
377377
"description": "if-else statement"
378-
},
378+
},
379+
"method": {
380+
"prefix": "method",
381+
"body": [
382+
"[${returnType:void}] ${name:MyMethod}(${Optional Parameters}) {",
383+
"\t$1",
384+
"}"
385+
],
386+
"description": "Method of a class"
387+
},
379388
"switch": {
380389
"prefix": "switch",
381390
"body": [

0 commit comments

Comments
 (0)