Pycharm html缩进 [英] Pycharm html indentation

查看:660
本文介绍了Pycharm html缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当谈到html文件时,我对Pycharm自动缩进不太满意。有没有一种方法来配置,以便遵循html标准?因为它现在是< html> < head> < ; body> ,还有一些不缩进。



建议?

解决方案

您可能希望查看设置 - >项目设置 - >代码样式 - > HTML
其他标签中,您会看到一个名为不缩进的子元素的设置:

我认为这就是你需要的。




I'm not very pleased with the Pycharm auto-indentation when it comes to html-files. Is there a way to configure so that it follows html-standards? Because as it is now tags inside <html>, <head>, <body> and a few more are not indented.

Suggestions?

解决方案

You may want to look under Settings -> Project Settings -> Code Style -> HTML. There, in Other tab you'll find a setting called Do not indent children of:

I think that's what you need.

这篇关于Pycharm html缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆