文件----> 首选项 ----> 用户代码片段
prefix:生成模板代码的快捷键
scope:只有在html页面中使用这个快捷键才能生成模板
description:快捷键描述
1{ 2 "vue htm": { 3 "scope": "html", 4 "prefix": "vuehtml", 5 "body": [ 6 "<!DOCTYPE html>", 7 "<html lang=\"en\">", 8 "", 9 "<head>", 10 " <meta charset=\"UTF-8\">", 11 " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">", 12 " <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">", 13 " <title>Document</title>", 14 "</head>", 15 "", 16 "<body>", 17 " <div id=\"app\">", 18 "", 19 " </div>", 20 " <script src=\"vue.min.js\"></script>", 21 " <script>", 22 " new Vue({", 23 " el: '#app',", 24 " data: {", 25 " $1", 26 " }", 27 " })", 28 " </script>", 29 "</body>", 30 "", 31 "</html>", 32 ], 33 "description": "快速创建Vue模板" 34 } 35}