summaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-09-21 23:30:41 -0700
committerGeorge Fraser <george@fivetran.com>2018-09-21 23:30:41 -0700
commitee3968ce8b7af1a7f90b6a8fce20e702cd08158c (patch)
tree71ece0562fc650048de92bb8568b10d28db60d29 /snippets
parentee7173d9a09c469cde92053446363aea6ec5dbf9 (diff)
downloadjava-language-server-ee3968ce8b7af1a7f90b6a8fce20e702cd08158c.zip
Polish
Diffstat (limited to 'snippets')
-rw-r--r--snippets/java.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/snippets/java.json b/snippets/java.json
index 5456168..86f7424 100644
--- a/snippets/java.json
+++ b/snippets/java.json
@@ -2,9 +2,9 @@
"Array For Loop": {
"prefix": "fora",
"body": [
- "for (int ${1:i} = 0; ${1:i} < ${2:array}.length; ${1:i}++) {",
- "\t${3:type} ${4:each} = ${2:array}[${1:i}];",
- "\t$0",
+ "for (var ${1:i} = 0; ${1:i} < ${2:array}.length; ${1:i}++) {",
+ " var ${3:each} = ${2:array}[${1:i}];",
+ " $0",
"}"
],
"description": "Array For Loop"
@@ -12,8 +12,8 @@
"For Comprehension": {
"prefix": "for",
"body": [
- "for (${1:Type} ${2:each} : ${3:collection}) {",
- "\t$0",
+ "for (var ${1:each} : ${2:collection}) {",
+ " $0",
"}"
],
"description": "For Comprehension"