首页 > 其他 > 详细

vscode设置vue模版

时间:2020-02-11 18:40:56      阅读:74      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!