|
8 | 8 | ], |
9 | 9 | "description": "Public static main method" |
10 | 10 | }, |
11 | | - "sysout": { |
12 | | - "prefix": "sysout", |
13 | | - "body": [ |
14 | | - "System.out.println($0);" |
15 | | - ], |
16 | | - "description": "Print to standard out" |
17 | | - }, |
18 | | - "syserr": { |
19 | | - "prefix": "syserr", |
20 | | - "body": [ |
21 | | - "System.err.println($0);" |
22 | | - ], |
23 | | - "description": "Print to standard err" |
24 | | - }, |
25 | | - "fori": { |
26 | | - "prefix": "fori", |
27 | | - "body": [ |
28 | | - "for (${1:int} ${2:i} = ${3:0}; $2 < ${4:max}; $2++) {", |
29 | | - "\t$0", |
30 | | - "}" |
31 | | - ], |
32 | | - "description": "Indexed for loop" |
33 | | - }, |
34 | | - "foreach": { |
35 | | - "prefix": "foreach", |
36 | | - "body": [ |
37 | | - "for (${1:type} ${2:var} : ${3:iterable}) {", |
38 | | - "\t$0", |
39 | | - "}" |
40 | | - ], |
41 | | - "description": "Enhanced for loop" |
42 | | - }, |
43 | 11 | "Public constructor": { |
44 | 12 | "prefix": "ctor", |
45 | 13 | "body": [ |
|
49 | 17 | ], |
50 | 18 | "description": "Public constructor" |
51 | 19 | }, |
52 | | - "if": { |
53 | | - "prefix": "if", |
54 | | - "body": [ |
55 | | - "if (${1:condition}) {", |
56 | | - "\t$0", |
57 | | - "}" |
58 | | - ], |
59 | | - "description": "if statement" |
60 | | - }, |
61 | | - "ifelse": { |
62 | | - "prefix": "ifelse", |
63 | | - "body": [ |
64 | | - "if (${1:condition}) {", |
65 | | - "\t$2", |
66 | | - "} else {", |
67 | | - "\t$0", |
68 | | - "}" |
69 | | - ], |
70 | | - "description": "if/else statement" |
71 | | - }, |
72 | | - "ifnull": { |
73 | | - "prefix": "ifnull", |
74 | | - "body": [ |
75 | | - "if (${1:condition} == null) {", |
76 | | - "\t$0", |
77 | | - "}" |
78 | | - ], |
79 | | - "description": "if statement checking for null" |
80 | | - }, |
81 | | - "ifnotnull": { |
82 | | - "prefix": "ifnotnull", |
83 | | - "body": [ |
84 | | - "if (${1:condition} != null) {", |
85 | | - "\t$0", |
86 | | - "}" |
87 | | - ], |
88 | | - "description": "if statement checking for not null" |
89 | | - }, |
90 | 20 | "trycatch": { |
91 | 21 | "prefix": "try_catch", |
92 | 22 | "body": [ |
|
167 | 97 | ], |
168 | 98 | "description": "Switch Statement" |
169 | 99 | }, |
170 | | - "While Statement": { |
171 | | - "prefix": "while", |
172 | | - "body": [ |
173 | | - "while (${1:condition}) {", |
174 | | - "\t$0", |
175 | | - "}" |
176 | | - ], |
177 | | - "description": "While Statement" |
178 | | - }, |
179 | | - "Do-While Statement": { |
180 | | - "prefix": "dowhile", |
181 | | - "body": [ |
182 | | - "do {", |
183 | | - "\t$0", |
184 | | - "} while (${1:condition});" |
185 | | - ], |
186 | | - "description": "Do-While Statement" |
187 | | - }, |
188 | 100 | "newObject": { |
189 | 101 | "prefix": "new", |
190 | 102 | "body": [ |
|
0 commit comments