1.安装wxml 2.安装wxss-peek 3.在setting.json中加上以下代码 "files.associations": { "*.wxml": "html", "*.wxss": "css" }