Last active
December 26, 2016 01:41
-
-
Save Griffingj/ae8476990b6acd0d4c3b0c508097ff70 to your computer and use it in GitHub Desktop.
VsCode TS snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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