snippets/markdown.json
{
// Place your snippets for markdown 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:
// "Print to console": {
// "prefix": "log",
// "body": ["console.log('$1');", "$2"],
// "description": "Log output to console"
// },
"highlight red": {
"prefix": "hr",
"body": ["<font color='red' size='4'>\n$1\n</font>"],
"description": "highlight red"
},
"highlight orange": {
"prefix": "ho",
"body": ["<font color='orange' size='4'>\n$1\n</font>"],
"description": "highlight orange"
},
"highlight yellow": {
"prefix": "hy",
"body": ["<font color='yellow' size='4'>\n$1\n</font>"],
"description": "highlight yellow"
},
"highlight green": {
"prefix": "hg",
"body": ["<font color='green' size='4'>\n$1\n</font>"],
"description": "highlight green"
},
"highlight blue": {
"prefix": "hb",
"body": ["<font color='skyblue' size='4'>\n$1\n</font>"],
"description": "highlight skyblue"
},
"highlight violet": {
"prefix": "hv",
"body": ["<font color='violet' size='4'>\n$1\n</font>"],
"description": "highlight violet"
},
"anki question": {
"prefix": "qq",
"body": ["<font style='display:none;'>\n$1\n</font>"],
"description": "make anki question"
}
}
snippets/javascript.json
{
// 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:
"Print to console": {
"prefix": "log",
"body": ["console.log('$1');", "$2"],
"description": "Log output to console"
}
}
snippets/html.json
{
"create vue app": {
"prefix": "vueapp",
"body": [
"<!DOCTYPE html>",
"<html lang=\"zh\">",
"<head>",
" <meta charset=\"UTF-8\">",
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
" <title>Document</title>",
"</head>",
"<body>",
" <div id=\"app\">",
" {{msg}}",
" </div>",
" <script src=\"vue/vue.js\"></script>",
" <script>",
" Vue.createApp({",
" data:function(){",
" return{",
" msg: 'hello vue'",
" }",
" }",
" }).mount('#app')",
" </script>",
"</body>",
"</html>"
],
"description": "create vue app"
}
}