Last active
February 25, 2020 19:14
-
-
Save samholmes/8254b9d10342380892c35ba29b388f29 to your computer and use it in GitHub Desktop.
VS Code 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
{ | |
"Arrow Function": { | |
"prefix": "af", | |
"body": ["(${1}) => ${2:{${0}\\}}"], | |
"description": "Creates a ES6 arrow function." | |
}, | |
"Anonymous Function": { | |
"prefix": "fun", | |
"body": ["function(${1}) {\n\t${0}\n}"], | |
"description": "Creates an anonymous function." | |
}, | |
"Function Declaration": { | |
"prefix": "func", | |
"body": ["function ${1:name}(${2}) {\n\t${0}\n}"], | |
"description": "Creates an anonymous function." | |
}, | |
"Async Arrow Function": { | |
"prefix": "aaf", | |
"body": ["async (${1}) => ${2:{${0}\\}}"], | |
"description": "Creates a ES6 arrow function." | |
}, | |
"Async Anonymous Function": { | |
"prefix": "afun", | |
"body": ["async function(${1}) {\n\t${0}\n}"], | |
"description": "Creates an anonymous function." | |
}, | |
"Async Function Declaration": { | |
"prefix": "afunc", | |
"body": ["async function ${1:name}(${2}) {\n\t${0}\n}"], | |
"description": "Creates an anonymous function." | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment