# 这里是vue-html.code-snippets文件的代码
{
"vue html": {
"scope": "html",
"prefix": "vuehtml", //这个配置项表示,在页面中输入vuehtml就会出现这个vue模板
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
"",
"<head>",
" <meta charset=\"UTF-8\">",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
" <title>Document</title>",
"</head>",
"",
"<body>",
" <div id=\"app\">",
"",
" </div>",
" <script src=\"./vue.min.js\"></script>",
" <script>",
" new Vue({",
" el:'#app',",
" data:{",
" $1",
" }",
" })",
" </script>",
"</body>",
"",
"</html>",
],
"description": "my vue template in html"
}
}
vscode生成vue代码片段
最新推荐文章于 2023-11-12 17:00:03 发布