VScode中添加vue代码模版

步骤

  • 文件
  • 首选项
  • 用户代码片段
  • 搜索vue打开vue.json
  • 将下方代码替换
{
  "Print to console": {
    "prefix": "vue",
    "body": [
      "<template>",
      "  <div></div>",
      "</template>",
      "",
      "<script>",
      "export default {",
      "  data() {",
      "    return {",
      "    }",
      "  },",
      "",
      "  components: {},",
      "",
      "  computed: {},",
      "",
      "  mounted() {},",
      "",
      "  methods: {}",
      "}",
      "",
      "</script>",
      "<style lang='scss' scoped>",
      "</style>"

  ],
    "description": "Log output to console"
  }
}
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页