vs快速创建VUE组件模板

2022-06-08  本文已影响0人  岚平果
  1. 文件-->首选项-->用户代码片段-->输入框输入vue.json;
  2. 将如下代码复制到文件中:
{
  "Print to console": {
  "prefix":"vue",
  "body": [
  "<!-- $0 -->",
  "<template>",
  "  <div></div>",
  "</template>",
  "",
  "<script>",
  "export default {",
  "  data () {",
  "    return {",
  "    }",
  "  }",
  "}",
  "</script>",
  "",
  "<style lang='less' scoped>",
  "",
  "</style>",
  ""
  
      ],
  
  "description":"Log output to console"
  
    }
  
  }
  1. 然后新建.vue文件,在空白文件中输入vue,回车
上一篇 下一篇

猜你喜欢

热点阅读