WebStrom 默认格式是这样的 ctlrl + alt + L 缩进效果直接定格了 期望的时这样的 去设置里修改 把这个里面的html删除保存 重新格式化代码 ctrl + alt + L 缩进可以了