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