gpt4 book ai didi

html - 在 VS Code 中关闭 HTML 标记时需要再次手动缩进

转载 作者:行者123 更新时间:2023-12-05 00:49:01 24 4
gpt4 key购买 nike

在 Microsoft VS Code 中,当我关闭 HTML 标记时(例如在底部图像上),当前位置将移动到第一列并删除标签缩进。然后我需要再次使用制表符手动缩进。我该如何解决?

GIF Example - please click here…

我的 settings.json 文件:

..."editor.detectIndentation": false,"editor.wrappingIndent": "none","editor.trimAutoWhitespace": false,"files.trimTrailingWhitespace": false,"files.insertFinalNewline": true,"html.format.endWithNewline": false,...

最佳答案

我将 settings.json 中的选项设置为:

    "editor.detectIndentation": true,    "editor.autoIndent": false

现在它正在工作。固定。

关于html - 在 VS Code 中关闭 HTML 标记时需要再次手动缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46655546/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com