码迷,mamicode.com
首页 > 其他好文 > 详细

vscode设置vue模版

时间:2020-02-11 17:31:36      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:art   ons   tco   component   ops   模版   src   computed   details   

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

vscode设置vue模版

标签:art   ons   tco   component   ops   模版   src   computed   details   

原文地址:https://www.cnblogs.com/glzgc/p/12295826.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!