Vscode中快速生成Vue3模板 ts setup 版

步骤:设置=> 用户代码片段=> 新建vue3文件夹的代码片段

{
  "Print to console": {
    "prefix": "vue3",
    "body": [
      "<template>",
      "  <div></div>",
      "</template>",
      "",
      "<script lang='ts' setup>",
      "</script>",
      "<style scoped lang='scss'>",
      "</style>"
    ],
    "description": "Log output to console"
  }
}

posted on 2024-11-24 07:39  zyp_java_net  阅读(451)  评论(0)    收藏  举报

导航