Skip to content

Instantly share code, notes, and snippets.

@brihter
Last active October 31, 2022 10:29
Show Gist options
  • Save brihter/7dd908e86b135fa68da3e649e4787a13 to your computer and use it in GitHub Desktop.
Save brihter/7dd908e86b135fa68da3e649e4787a13 to your computer and use it in GitHub Desktop.
Visual Studio Code Snippets
{
"JS Module": {
"scope": "javascript",
"prefix": "$mod",
"body": [
"const $1 = (opts = {}) => {",
" const $2 = async () => {",
" $0",
" }",
"",
" return {",
" $2",
" }",
"}",
"",
"export { $1 }",
""
],
"description": "JS Module"
},
"JS Function": {
"scope": "javascript",
"prefix": "$fn",
"body": [
"const $1 = () => {",
" $0",
"}",
""
],
"description": "JS Function"
},
"JS Function Async": {
"scope": "javascript",
"prefix": "$fna",
"body": [
"const $1 = async () => {",
" $0",
"}",
""
],
"description": "JS Async Function"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment