Last active
October 31, 2022 10:29
-
-
Save brihter/7dd908e86b135fa68da3e649e4787a13 to your computer and use it in GitHub Desktop.
Visual Studio 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
Show hidden characters
{ | |
"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