Last active
August 29, 2015 14:24
-
-
Save AbraaoAlves/b9c406931ab7747ad554 to your computer and use it in GitHub Desktop.
VSCode snippets
This file contains hidden or 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
| { | |
| "Print to console": { | |
| "prefix": "log", | |
| "body": [ | |
| "console.log('$1');", | |
| "$2" | |
| ], | |
| "description": "Log output to console" | |
| }, | |
| "Simple function":{ | |
| "prefix": "function", | |
| "body": [ | |
| "function ${1:name}(${2:param}){\n\t $3\n}" | |
| ], | |
| "description": "simple function" | |
| }, | |
| "Gulp task":{ | |
| "prefix": "task", | |
| "body": [ | |
| "gulp.task('${1:name}', function(){\n\t $2\n})" | |
| ], | |
| "description": "simple gulp task" | |
| }, | |
| "Test Case":{ | |
| "prefix": "describe", | |
| "body": [ | |
| "describe('${1:spec#title}', function() {\n\n\tit('${2:test#title}', function(){\n\t\t$3\n\t});\n});" | |
| ], | |
| "description": "Init describe spec" | |
| }, | |
| "Unit Test":{ | |
| "prefix": "it", | |
| "body": [ | |
| "it('${1:test#title}', function(){\n\t$2\n});" | |
| ], | |
| "description": "Init it spec" | |
| } | |
| } |
This file contains hidden or 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
| { | |
| "Print to console": { | |
| "prefix": "log", | |
| "body": [ | |
| "console.log('$1');", | |
| "$2" | |
| ], | |
| "description": "Log output to console" | |
| }, | |
| "Simple function":{ | |
| "prefix": "function", | |
| "body": [ | |
| "function ${1:name}(${2:param}){\n\t $3\n}" | |
| ], | |
| "description": "simple function" | |
| }, | |
| "Gulp task":{ | |
| "prefix": "task", | |
| "body": [ | |
| "gulp.task('${1:name}', function(){\n\t $2\n})" | |
| ], | |
| "description": "simple gulp task" | |
| }, | |
| "Test Case":{ | |
| "prefix": "describe", | |
| "body": [ | |
| "describe('${1:spec#title}', () => {\n\n\tit('${2:test#title}', ()=>{\n\t\t$3\n\t});\n});" | |
| ], | |
| "description": "Init describe spec" | |
| }, | |
| "Unit Test":{ | |
| "prefix": "it", | |
| "body": [ | |
| "it('${1:test#title}', ()=>{\n\t$2\n});" | |
| ], | |
| "description": "Init it spec" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment