vscode设置vue模版

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

posted @ 2020-02-11 17:18  过了这个村  阅读(1279)  评论(0编辑  收藏  举报

正是因为短暂的生命中有那么多困难和不如意,死亡又在一旁窥视着我们,所以我们没有时间忧伤和叹息,我们必须认真地对待生命,去思考,去寻找。