Created
April 24, 2019 20:56
-
-
Save Griffingj/4f78a11a6ad909619b33aca222ae940e to your computer and use it in GitHub Desktop.
Vscode 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';" | |
} | |
} |
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';" | |
} | |
} |
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';" | |
} | |
} |
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