feat: snippets
This commit is contained in:
10
snippets/html.json
Normal file
10
snippets/html.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user