Skip to content

Commit

Permalink
Add snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Mar 26, 2018
1 parent 64aa83c commit e53ddad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snippets/scala.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
".source.scala": {
"main": {
"prefix": "main",
"prefix": "def main",
"body": "def main(args: Array[String]): Unit = {\n\t${1:expr}\n}",
"description": "Snippet for if expression"
},
Expand All @@ -21,7 +21,10 @@
"class": { "prefix": "class", "body": "class ", "description": "class keyword" },
"trait": { "prefix": "trait", "body": "trait ", "description": "trait keyword" },
"object": { "prefix": "object", "body": "object ", "description": "object keyword" },
"extends": { "prefix": "extends", "body": "extends ", "description": "extends keyword" },
"override": { "prefix": "override", "body": "override ", "description": "override keyword" },
"private": { "prefix": "private", "body": "private ", "description": "private keyword" },
"protected": { "prefix": "protected", "body": "protected ", "description": "protected keyword" },
"catch": { "prefix": "catch", "body": "catch ", "description": "catch keyword" },
"finally": { "prefix": "finally", "body": "finally ", "description": "finally keyword" }
}
Expand Down

0 comments on commit e53ddad

Please sign in to comment.