Last active
September 19, 2022 10:07
-
-
Save hyperframed/6308b6ec552460e3fea939286e7b3705 to your computer and use it in GitHub Desktop.
VS Code Snippets for Javascript
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
{ | |
"jQuery Selector": { | |
"prefix": "sel", | |
"body": [ | |
"$('.$Selector')", | |
], | |
}, | |
"jQuery Selector without Class": { | |
"prefix": "set", | |
"body": [ | |
"$($this)", | |
], | |
}, | |
"Document Ready Function": { | |
"prefix": "dr", | |
"body": [ | |
"$(document).ready(function(){", | |
"\t$Code", | |
"});", | |
], | |
}, | |
"Prepros Prepend": { | |
"prefix": "pre", | |
"body": [ | |
"//@prepros-prepend ../../node_modules/", | |
], | |
}, | |
"Prepros Prepend Plugin": { | |
"prefix": "plug", | |
"body": [ | |
"//@prepros-prepend ../../inc/plugins/", | |
], | |
}, | |
"Prepros Append": { | |
"prefix": "ap", | |
"body": [ | |
"//@prepros-append ../../node_modules/", | |
], | |
}, | |
"Comments": { | |
"prefix": "cc", | |
"body": [ | |
"// ------------------ $comment ------------------", | |
], | |
}, | |
"jQuery Function": { | |
"prefix": "jq", | |
"body": [ | |
"(function($){", | |
"\t$Code", | |
"})(jQuery);", | |
], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment