【发布时间】:2017-10-09 21:55:45
【问题描述】:
在 Microsoft VS Code 中,当我关闭 HTML 标记时(例如在底部图像上),当前位置将移动到第一列并删除标签缩进。然后我需要再次使用制表符手动缩进。我该如何解决?
我的 settings.json 文件:
... “editor.detectIndentation”:假, “editor.wrappingIndent”:“无”, “editor.trimAutoWhitespace”:假, “files.trimTrailingWhitespace”:假, “files.insertFinalNewline”:是的, “html.format.endWithNewline”:假, ...【问题讨论】:
-
"editor.detectIndentation": false,是您的问题。让true
标签: html tags visual-studio-code newline indentation