Skip to content

Instantly share code, notes, and snippets.

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