在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即可出現代碼塊