Skip to content

Commit fa7fea7

Browse files
committed
Remove some snippets to keep options simple
1 parent 27a8e69 commit fa7fea7

File tree

1 file changed

+0
-60
lines changed

1 file changed

+0
-60
lines changed

snippets/scala.json

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,6 @@
55
"body": "def main(args: Array[String]): Unit = {\n\t${1:expr}\n}",
66
"description": "Snippet for if expression"
77
},
8-
"val": {
9-
"prefix": "val",
10-
"body": "val ${1:name}: ${2:Type} = ${3:rhs}",
11-
"description": "Snippet for a val declaration with explicit type"
12-
},
13-
"var": {
14-
"prefix": "var",
15-
"body": "var ${1:name}: ${2:Type} = ${3:rhs}",
16-
"description": "Snippet for a var declaration with explicit type"
17-
},
18-
"lazy val": {
19-
"prefix": "lazy val",
20-
"body": "lazy val ${1:name}: ${2:Type} = ${3:rhs}",
21-
"description": "Snippet for a var declaration with explicit type"
22-
},
23-
"def without arguments": {
24-
"prefix": "def",
25-
"body": "def ${1:name}: ${4:ReturnType} = ${5:rhs}",
26-
"description": "Snippet for a var declaration with explicit type"
27-
},
28-
"def with 1 argument": {
29-
"prefix": "def1",
30-
"body": "def ${1:name}(${2:arg}: ${3:ArgType}): ${4:ReturnType} = ${5:rhs}",
31-
"description": "Snippet for a var declaration with explicit type"
32-
},
33-
"def with 2 arguments": {
34-
"prefix": "def2",
35-
"body": "def ${1:name}(${2:arg1}: ${3:ArgType1}, ${4:arg2}: ${5:ArgType2}): ${6:ReturnType} = ${7:rhs}",
36-
"description": "Snippet for a var declaration with explicit type"
37-
},
38-
"if expression": {
39-
"prefix": "if",
40-
"body": "if (${1:condition}) ${2:thenDo} \nelse ${3:elseDo}",
41-
"description": "Snippet for if expression"
42-
},
43-
"if statement": {
44-
"prefix": "if",
45-
"body": "if (${1:condition}) {\n\t${2:thenDo}\n}",
46-
"description": "Snippet for if statement"
47-
},
48-
"else branch": {
49-
"prefix": "else",
50-
"body": "else {\n\t${0:elseDo}\n}",
51-
"description": "Snippet for else branch"
52-
},
538
"match": {
549
"prefix": "match",
5510
"body": "match {\n\tcase ${1:pattern} => $2 \n}",
@@ -60,25 +15,10 @@
6015
"body": "case ${1:pattern} => $2",
6116
"description": "Snippet for else branch"
6217
},
63-
"case if": {
64-
"prefix": "case if",
65-
"body": "case ${1:pattern} if ${2:guard} => $3",
66-
"description": "Snippet for else branch"
67-
},
6818
"try catch": {
6919
"prefix": "try catch",
7020
"body": "try {\n\t${1:expression}\n} catch {\n\tcase ex: ${2:ExeptionClass} => $3 \n}",
7121
"description": "Snippet for try/catch expression"
72-
},
73-
"try catch finally": {
74-
"prefix": "try catch finally",
75-
"body": "try {\n\t${1:expression}\n} catch {\n\tcase ex: ${2:ExeptionClass} => $3 \n} finally {\n\t${4:finallyDo}\n}",
76-
"description": "Snippet for try/catch/finally expression"
77-
},
78-
"try finally": {
79-
"prefix": "try finally",
80-
"body": "try {\n\t${1:expression}\n} finally {\n\t${4:finallyDo}\n}",
81-
"description": "Snippet for try/finally expression"
8222
}
8323
}
8424
}

0 commit comments

Comments
 (0)