|
1 | 1 | {
|
2 | 2 | ".source.scala": {
|
3 | 3 | "main": {
|
4 |
| - "prefix": "def main", |
| 4 | + "prefix": "main", |
5 | 5 | "body": "def main(args: Array[String]): Unit = {\n\t${1:expr}\n}",
|
6 | 6 | "description": "Snippet for if expression"
|
7 | 7 | },
|
| 8 | + |
8 | 9 | "match": {
|
9 | 10 | "prefix": "match",
|
10 |
| - "body": "match {\n\tcase ${1:pattern} => $2 \n}", |
11 |
| - "description": "Snippet for else branch" |
12 |
| - }, |
13 |
| - "case": { |
14 |
| - "prefix": "case", |
15 |
| - "body": "case ${1:pattern} => $2", |
| 11 | + "body": "match {\n\tcase ${1:pattern} => ${2:doSomething} \n}", |
16 | 12 | "description": "Snippet for else branch"
|
17 | 13 | },
|
| 14 | + |
18 | 15 | "try catch": {
|
19 |
| - "prefix": "try catch", |
20 |
| - "body": "try {\n\t${1:expression}\n} catch {\n\tcase ex: ${2:ExeptionClass} => $3 \n}", |
| 16 | + "prefix": "try", |
| 17 | + "body": "try {\n\t${1:expression}\n} catch {\n\tcase ex: ${2:ExeptionClass} => ${3:doSomething} \n}", |
21 | 18 | "description": "Snippet for try/catch expression"
|
22 |
| - } |
| 19 | + }, |
| 20 | + |
| 21 | + "class": { "prefix": "class", "body": "class ", "description": "class keyword" }, |
| 22 | + "trait": { "prefix": "trait", "body": "trait ", "description": "trait keyword" }, |
| 23 | + "object": { "prefix": "object", "body": "object ", "description": "object keyword" }, |
| 24 | + "override": { "prefix": "override", "body": "override ", "description": "override keyword" }, |
| 25 | + "catch": { "prefix": "catch", "body": "catch ", "description": "catch keyword" }, |
| 26 | + "finally": { "prefix": "finally", "body": "finally ", "description": "finally keyword" } |
23 | 27 | }
|
24 | 28 | }
|
0 commit comments