vscode wepy 用户自定义代码片段

VSCode wepy 自定义代码片段

{
  "wepy-page": {
    "prefix": "wepy",
    "body": [
      "<template>",
      "\t<view></view>",
      "</template>\n",
      "<script>",
      "import wepy from 'wepy'\n",
      "export default class ${1:${TM_FILENAME_BASE/([a-zA-Z])(.*)/${1:/upcase}$2/g}} extends wepy.${2|page,component,app|} {",
      "\t$3",
      "}",
      "</script>\n",
      "<style lang='scss'>\n",
      "</style>\n"
    ]
  },
  "Single Element": {
    "prefix": "singletag",
    "body": [
      "<$1 />\n"
    ]
  },
  "wepy-config": {
    "prefix": "configwepy",
    "body": [
      "config = {",
      "\tnavigationBarTitleText: '$1'",
      "}",
    ]
  }
}
posted @ 2018-10-13 10:15  烂拖鞋  阅读(1260)  评论(0编辑  收藏  举报