feat: base config
This commit is contained in:
commit
d4f9083772
11 files changed
+644
No files matched your search
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"Log to console": {
|
||||
"prefix": "console",
|
||||
"body": ["console.info(\"__${1:Place}!\")", "$0"],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
// Each snippet must have a name and body, but the prefix and description are optional.
|
||||
// The prefix is used to trigger the snippet, but when omitted then the name is used.
|
||||
// Use placeholders like $1, $2 or ${1:defaultValue} to define tab stops.
|
||||
// The $0 determines the final cursor position.
|
||||
// Placeholders with the same value are linked.
|
||||
"Log to console": {
|
||||
"prefix": "log",
|
||||
"body": ["console.info(\"Hello, ${1:World}!\")", "$0"],
|
||||
"description": "Logs to console"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"Log to console": {
|
||||
"prefix": "console log",
|
||||
"body": ["console.info(\"__${1:Place}\", {${2:Value}})", "$0"],
|
||||
"description": "Logs to console"
|
||||
},
|
||||
"Defines a function": {
|
||||
"prefix": "function",
|
||||
"body": ["function ${1:Name}(${2:args}) {\n\t${3}\n}", "$0"],
|
||||
"description": "Defines a function"
|
||||
},
|
||||
"Defienes a JSX component": {
|
||||
"prefix": "jsx component",
|
||||
"body": [
|
||||
"export function ${1:Name}(${2:args}): React.FC<${3}> {\n\t${4}\n}",
|
||||
"$0"
|
||||
],
|
||||
"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