Add logging snippets for Javascript & typescript (#37889)

This commit is contained in:
Abinav Seelan
2017-11-11 00:49:36 +05:30
committed by Matt Bierner
parent 8e1bf19f3d
commit 2a8744fa14
2 changed files with 40 additions and 0 deletions

View File

@@ -160,5 +160,29 @@
"//#endregion"
],
"description": "Folding Region End"
},
"Log to the console": {
"prefix": "log",
"body": [
"console.log($1);",
"$0"
],
"description": "Log to the console"
},
"Log warning to console": {
"prefix": "warn",
"body": [
"console.warn($1);",
"$0"
],
"description": "Log warning to the console"
},
"Log error to console": {
"prefix": "error",
"body": [
"console.error($1);",
"$0"
],
"description": "Log error to the console"
}
}