Skip to content

Instantly share code, notes, and snippets.

@F1LT3R
Created September 10, 2025 06:57
Show Gist options
  • Select an option

  • Save F1LT3R/de41a566b11bf53f6fcadb656c572300 to your computer and use it in GitHub Desktop.

Select an option

Save F1LT3R/de41a566b11bf53f6fcadb656c572300 to your computer and use it in GitHub Desktop.
VS Code Snippets
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"console.log(": {
"prefix": "c",
"body": [
"console.log($0",
],
"description": "Console Log"
},
"function(": {
"prefix": "f",
"body": [
"function $1($2) {",
"\t$0",
"}"
],
"description": "Function Statement"
},
"() => {": {
"prefix": "l",
"body": [
" = ($1) => {",
"\t$0",
"}"
],
"description": "Lambda w/ Block"
},
"new Promise((resolve, reject) => ": {
"prefix": "p",
"body": [
"const $1 = () => new Promise((resolve, reject) => {",
"\t$0",
"})"
],
"description": "New Promise"
},
"IIFE(": {
"prefix": "i",
"body": [
"(function ($2) {",
"\t$0",
"})($1)",
],
"description": "IIFE"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment