vscode设置vue模版

六眼飞鱼酱① 提交于 2020-03-22 17:57:37

路径:文件>>首选项>>用户代码片段>>输入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"
  }

 

 

 

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!