当涉及到 html 文件时,我对 Pycharm 的自动缩进不是很满意。有没有办法进行配置,使其遵循 html 标准?因为它现在是 <html>
内的标签, <head>
, <body>
还有一些没有缩进。
建议?
最佳答案
您可能需要查看 Settings -> Project Settings -> Code Style -> HTML
。
在 Other 选项卡中,您会找到一个名为 Do not indent children of:
我认为这就是您所需要的。
关于html - Pycharm html缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23831764/