在Hbuildx中打开工具 - >代码块设置 - > vue代码块-
添加自定义代码块:(在右边大括号内添加)
"ulist":{ "body":[ "<view class=\"uni-list\">", "\t<view class=\"uni-list-cell\">", "\t\t<view class=\"uni-list-cell-navigate uni-navigate-right\">", "\t\t\t例子", "\t\t</view>", "\t</view>", "</view>" ], "prefix":"ulist", "project":"uni-app", "scope":"source.vue.html" }
添加成功后:
直接在相应页面输入:ulist即可出现代码块