Skip to content

Commit 14612c2

Browse files
borellifrgrunber
authored andcommitted
Support constructor access modifiers in snippet using choice values.
1 parent fba8a6f commit 14612c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

snippets/java.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
],
99
"description": "Public static main method"
1010
},
11-
"Public constructor": {
11+
"Constructor": {
1212
"prefix": "ctor",
1313
"body": [
14-
"public ${1:${TM_FILENAME_BASE}}($2) {",
15-
"\t${3:super();}$0",
14+
"${1|public,protected,private|} ${2:${TM_FILENAME_BASE}}($3) {",
15+
"\t${4:super();}$0",
1616
"}"
1717
],
18-
"description": "Public constructor"
18+
"description": "Constructor"
1919
},
2020
"trycatch": {
2121
"prefix": "try_catch",

0 commit comments

Comments
 (0)