vscode wepy 用户自定义代码片段

VSCode wepy 自定义代码片段

{
  "wepy-page": {
    "prefix": "wepy",
    "body": [
      "<template>",
      "	<view></view>",
      "</template>
",
      "<script>",
      "import wepy from 'wepy'
",
      "export default class ${1:${TM_FILENAME_BASE/([a-zA-Z])(.*)/${1:/upcase}$2/g}} extends wepy.${2|page,component,app|} {",
      "	$3",
      "}",
      "</script>
",
      "<style lang='scss'>
",
      "</style>
"
    ]
  },
  "Single Element": {
    "prefix": "singletag",
    "body": [
      "<$1 />
"
    ]
  },
  "wepy-config": {
    "prefix": "configwepy",
    "body": [
      "config = {",
      "	navigationBarTitleText: '$1'",
      "}",
    ]
  }
}
原文地址:https://www.cnblogs.com/lantuoxie/p/9781827.html