一、File->Setting->Tools选择File Watchers,添加Pug/Jade 二、编辑,Program选择已安装好的pug.cmd 三、执行pug -w,右键顶部名称选择分栏显示,修改pug任何内容,就会自动编译