我将 WebStorm 10 与 Jade 结合使用。生成的 HTML 不是自动缩进的,例如:
index.jade:
extends layout
block content
h1= title
p Welcome to #{title}
index.html
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" href="/stylesheets/style.css"></head><body><h1></h1><p>Welcome to </p></body></html>
有没有办法自动缩进生成的 HTML?
最佳答案
Windows 和 Linux 上的 Ctrl + Alt + L
Mac OS X 上的 Option + Command + L
已更新
如果您在 Arguments: 中设置了 $FileName$ --pretty
,那么输出的格式应该很好。
关于html - 如何在 WebStorm 10 中使生成的 HTML 文件自动缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30036456/