VSCode默认情况下不会对<head>
和<body>
标签进行缩进。默认设置中存在以下几行代码:
// Indent <head> and <body> sections.
"html.format.indentInnerHtml": false,
我尝试在用户设置中将
html.format.indentInnerHtml
设置为true
,但没有改变任何内容。这是我得到的结果:
<html>
<head></head>
<body></body>
</html>
This is what I want:
<html>
<head></head>
<body></body>
</html>