Skip to content

Instantly share code, notes, and snippets.

@hyperframed
Last active September 19, 2022 10:07
Show Gist options
  • Save hyperframed/6308b6ec552460e3fea939286e7b3705 to your computer and use it in GitHub Desktop.
Save hyperframed/6308b6ec552460e3fea939286e7b3705 to your computer and use it in GitHub Desktop.
VS Code Snippets for Javascript
{
"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