feat: snippets

This commit is contained in:
2025-07-18 14:42:50 +02:00
parent 8b092ec8be
commit 97d757dcfc
3 changed files with 26 additions and 0 deletions

10
snippets/html.json Normal file
View File

@@ -0,0 +1,10 @@
{
"Print base": {
"prefix": "!html5",
"body": [
"<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t\t<title></title>\n\t\t<link href=\"style.css\" rel=\"stylesheet\" />\n\t</head>\n\t<body>\n\t\t<main></main>\n\t\t<script>\n\t\t</script>\n\t</body>\n</html>\n",
"$0"
],
"description": "Creates an html5 template"
}
}

View File

@@ -3,5 +3,13 @@
"prefix": "console", "prefix": "console",
"body": ["console.info(\"__${1:Place}!\")", "$0"], "body": ["console.info(\"__${1:Place}!\")", "$0"],
"description": "Logs to console" "description": "Logs to console"
},
"Create Docstring": {
"prefix": "docstring jsdoc",
"body": [
"/**\n* ${1:Description}\n* @param {${2:Type}} ${3:Name}\n* @returns {${4:Type}} ${5:Name}\n*/",
"$0"
],
"description": "Creates a new JSDoc string"
} }
} }

View File

@@ -16,5 +16,13 @@
"$0" "$0"
], ],
"description": "Defines a JSX component" "description": "Defines a JSX component"
},
"Create Docstring": {
"prefix": "docstring jsdoc",
"body": [
"/**\n* ${1:Description}\n* @param {${2:Type}} ${3:Name}\n* @returns {${4:Type}} ${5:Name}\n*/",
"$0"
],
"description": "Creates a new JSDoc string"
} }
} }