Skip to content

Instantly share code, notes, and snippets.

@Griffingj
Last active December 26, 2016 01:41
Show Gist options
  • Save Griffingj/ae8476990b6acd0d4c3b0c508097ff70 to your computer and use it in GitHub Desktop.
Save Griffingj/ae8476990b6acd0d4c3b0c508097ff70 to your computer and use it in GitHub Desktop.
VsCode TS snippets
{
"Named Function": {
"prefix": "af",
"body": [
"function $1($2) {$3}"
],
"description": "Named Function"
},
"Console Log": {
"prefix": "lg",
"body": [
"console.log(${1:'here'});"
]
},
"Describe Block": {
"prefix": "des",
"body": [
"describe('$1', () => {",
" $2",
"});"
]
},
"It Block": {
"prefix": "it",
"body": [
"it('$1', (done) => {",
" $2",
"});"
]
},
"Inspect": {
"prefix": "ci2",
"body": [
"console.log(`$1 >>> \\${require('util').inspect($1)}`)"
]
},
"Print String": {
"prefix": "ci",
"body": "console.log(`$1 >>> \\${JSON.stringify($1, null, 2)}`)"
},
"Import": {
"prefix": "im",
"body": "import $1 from '$2 $1';"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment