VUE代码片段
在vscode中创建代码片段起一个后缀名为.code-snippets的文件名我起的名字为vue-html.code-snippetsvue htm即为代码生成的快捷键{"vue htm": {"scope": "html","prefix": "vuehtml","body": ["<!DOCTYPE html>","<html lang=\"en\">","","<
·
在vscode中创建代码片段
起一个后缀名为.code-snippets的文件名
我起的名字为vue-html.code-snippets
vue htm 即为代码生成的快捷键
{
"vue htm": {
"scope": "html",
"prefix": "vuehtml",
"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"
}
}
更多推荐
已为社区贡献1条内容
所有评论(0)