简体   繁体   English

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

[英]Disable auto closing for HTML comments in VS Code

I have我有

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

in my settings and it works fine for all tags except for HTML comments.在我的设置中,它适用于除 HTML 注释之外的所有标签。 When I type <!-- it autocompletes with --> .当我输入<!--它会自动完成--> I went through other options in editor and HTML and can't find how to turn it off.我在编辑器和 HTML 中查看了其他选项,但找不到如何关闭它。

Change the second setting you have to this:将您必须的第二个设置更改为:

"editor.autoClosingBrackets": "never"

That should fix it.那应该解决它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM