路径:文件>>首选项>>用户代码片段>>输入vue

  "Print to console": {
    "prefix": "vue",
    "body": [
      "<style scoped lang=\"scss\">",
      "</style>",
      "",
      "<template>",
      "\t<div>\n\t\tHello World$0\n\t</div>",
      "</template>",
      "",
      "<script>",
      "//import x from ''",
      "export default {",
      "\tname: 'Unnamed',",
      "\tprops: {},",
      "\tdata () {",
      "\t\treturn {",
      "\t\t}",
      "\t},",
      "\tcomponents: {},",
      "\tcomputed: {},",
      "\twatch: {},",
      "\tmethods: {},",
      "\tbeforeMount () { },",
      "\tmounted () { },",
      "\tactivated () { }",
      "}",
      "</script>",
      ""
    ],
    "description": "vue output to vue-template"
  }

 vscode设置vue模版

 

 

参考:https://blog.csdn.net/jbj6568839z/article/details/97759575

相关文章:

  • 2022-12-23
  • 2021-10-24
  • 2021-06-16
  • 2021-11-30
  • 2021-08-04
  • 2021-05-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-10-22
  • 2021-11-22
  • 2021-05-27
相关资源
相似解决方案