文件 => 首选项 => 用户代码片段 => 新建全局代码片段/或文件夹代码片段:vue-html.code-snippets
注意:制作代码片段的时候,字符串中如果包含文件中复制过来的“Tab”键的空格,要换成“空格键”的空格,比如:
{
"vue htm": {
"scope": "html",
"prefix": "vuehtml",
"body": [
"DOCTYPE html>",
"",
"",
"",
" ",
" ",
" ",
" Document",
"",
"",
"",
" ",
"",
" ",
" ",
" ",
" new Vue({",
" el: '#app',",
" data: {",
" $1",
" }",
" })",
" ",
"",
"",
"",
],
"description": "my vue template in html"
}
}
关注
打赏