Skip to content

Commit f7d787e

Browse files
authored
Use a stop tab for client-side snippets (#769)
Signed-off-by: Fred Bricon <[email protected]>
1 parent 2339185 commit f7d787e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

snippets/java.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
"prefix": "main",
44
"body": [
55
"public static void main(String[] args) {",
6-
"\t$1",
6+
"\t$0",
77
"}"
88
],
99
"description": "Public static main method"
1010
},
1111
"sysout": {
1212
"prefix": "sysout",
1313
"body": [
14-
"System.out.println($1);"
14+
"System.out.println($0);"
1515
],
1616
"description": "Print to standard out"
1717
},
1818
"syserr": {
1919
"prefix": "syserr",
2020
"body": [
21-
"System.err.println($1);"
21+
"System.err.println($0);"
2222
],
2323
"description": "Print to standard err"
2424
},
2525
"fori": {
2626
"prefix": "fori",
2727
"body": [
2828
"for (${1:int} ${2:i} = ${3:0}; $2 < ${4:max}; $2++) {",
29-
"\t$5",
29+
"\t$0",
3030
"}"
3131
],
3232
"description": "Indexed for loop"
@@ -35,7 +35,7 @@
3535
"prefix": "foreach",
3636
"body": [
3737
"for (${1:type} ${2:var} : ${3:iterable}) {",
38-
"\t$4",
38+
"\t$0",
3939
"}"
4040
],
4141
"description": "Enhanced for loop"
@@ -64,7 +64,7 @@
6464
"if (${1:condition}) {",
6565
"\t$2",
6666
"} else {",
67-
"\t$3",
67+
"\t$0",
6868
"}"
6969
],
7070
"description": "if/else statement"
@@ -73,7 +73,7 @@
7373
"prefix": "ifnull",
7474
"body": [
7575
"if (${1:condition} == null) {",
76-
"\t$2",
76+
"\t$0",
7777
"}"
7878
],
7979
"description": "if statement checking for null"
@@ -82,7 +82,7 @@
8282
"prefix": "ifnotnull",
8383
"body": [
8484
"if (${1:condition} != null) {",
85-
"\t$2",
85+
"\t$0",
8686
"}"
8787
],
8888
"description": "if statement checking for not null"
@@ -93,7 +93,7 @@
9393
"try {",
9494
"\t$1",
9595
"} catch (${2:Exception} ${3:e}) {",
96-
"\t$4//${5:TODO}: handle exception",
96+
"\t$4//${0:TODO}: handle exception",
9797
"}"
9898
],
9999
"description": "try/catch block"
@@ -102,7 +102,7 @@
102102
"prefix": "private_method",
103103
"body": [
104104
"private ${1:void} ${2:name}($3) {",
105-
"\t$4",
105+
"\t$0",
106106
"}"
107107
],
108108
"description": "private method"
@@ -111,7 +111,7 @@
111111
"prefix": "public_method",
112112
"body": [
113113
"public ${1:void} ${2:name}(${3}) {",
114-
"\t$4",
114+
"\t$0",
115115
"}"
116116
],
117117
"description": "public method"
@@ -120,7 +120,7 @@
120120
"prefix": "private_static_method",
121121
"body": [
122122
"private static ${1:Type} ${2:name}(${3}) {",
123-
"\t$4",
123+
"\t$0",
124124
"}"
125125
],
126126
"description": "private static method"
@@ -129,7 +129,7 @@
129129
"prefix": "public_static_method",
130130
"body": [
131131
"public static ${1:void} ${2:name}(${3}) {",
132-
"\t$4",
132+
"\t$0",
133133
"}"
134134
],
135135
"description": "public static method"
@@ -138,7 +138,7 @@
138138
"prefix": "protected_method",
139139
"body": [
140140
"protected ${1:void} ${2:name}(${3}) {",
141-
"\t$4",
141+
"\t$0",
142142
"}"
143143
],
144144
"description": "Protected method"
@@ -178,7 +178,7 @@
178178
"newObject": {
179179
"prefix": "new",
180180
"body": [
181-
"${1:Object} ${2:foo} = new ${1:Object}();"
181+
"${0:Object} ${1:foo} = new ${0:Object}();"
182182
],
183183
"description": "Create new Object"
184184
}

0 commit comments

Comments
 (0)