【发布时间】:2016-05-10 15:34:47
【问题描述】:
默认情况下,VSCode 的格式化程序不会缩进 <head> 和 <body> 标签。在默认设置中存在以下几行:
// Indent <head> and <body> sections.
"html.format.indentInnerHtml": false,
我尝试将用户设置中的html.format.indentInnerHtml 设置为true,但没有任何改变。
这是我得到的:
<html>
<head></head>
<body></body>
</html>
这就是我想要的:
<html>
<head></head>
<body></body>
</html>
【问题讨论】:
-
确保您已将更改保存到 settings.json。
标签: html visual-studio-code autoformatting