Last active
June 12, 2016 20:56
-
-
Save Alex0007/872f0c0edec26251b66f to your computer and use it in GitHub Desktop.
snippets.cson
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
'.source.js': | |
'Console log': | |
'prefix': 'log' | |
'body': 'console.log(\'$1\', $2$1)$3' | |
'Console error': | |
'prefix': 'err' | |
'body': 'console.error(\'$1\', $2$1)$3' | |
'Require': | |
'prefix': 'req' | |
'body': 'let $1 = require(\'$2$1\')\n$3' | |
'Anon Function': | |
'prefix': 'f' | |
'body': 'function ($1) {\n\t$2\n}$3' | |
'Arrow Function': | |
'prefix': 'ef' | |
'body': '($1) => $3{$2}' | |
'Import': | |
'prefix': 'i' | |
'body': 'import $1 from \'$2$1\'$3' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment