把下面的代码复制到html.json文件中。打开html,json的文件步骤,点击文件,然后选首选项,然后选用户代码片段,然后输入html,选择html.json。
{ "Vue": { "prefix": "vue", "body": [ "<!DOCTYPE html>", "<html lang=\"en\">", "\t<head>", "\t\t<title>$1</title>", "\t\t<meta charset=\"UTF-8\">", "\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">", "\t\t<script src=\"./js/vue2.js\"></script>", "\t</head>", "\t<body>", "\t\t<div id=\"app\"></div>", "\t\t<script>", "\t\t\tvar vm = new Vue({", "\t\t\t\tel: ‘#app‘,", "\t\t\t\tdata: {", "", "\t\t\t\t}", "\t\t\t})", "\t\t</script>", "\t</body>", "</html>" ], "description": "vue - Defines a template for a vue & html5 document" } }
原文:https://www.cnblogs.com/Hajar/p/10930694.html