Skip to content

Instantly share code, notes, and snippets.

@samholmes
Last active February 25, 2020 19:14
Show Gist options
  • Save samholmes/8254b9d10342380892c35ba29b388f29 to your computer and use it in GitHub Desktop.
Save samholmes/8254b9d10342380892c35ba29b388f29 to your computer and use it in GitHub Desktop.
VS Code Snippets
{
"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