对VS Code中的HTML注释禁用自动关闭

问题描述 投票:5回答:1

我有

"html.autoClosingTags": false,
"editor.autoClosingBrackets": false

在我的设置中,它对HTML注释以外的所有标签均适用。当我键入<!--时,它将自动完成-->。我浏览了编辑器和HTML中的其他选项,找不到如何将其关闭。

html autocomplete visual-studio-code comments
1个回答
0
投票

将第二个设置更改为此:

"editor.autoClosingBrackets": "never"

应该解决它。

© www.soinside.com 2019 - 2024. All rights reserved.