Visual Studio Code 禁用自动关闭标签 [英] Visual Studio Code disable auto closing tags

查看:36
本文介绍了Visual Studio Code 禁用自动关闭标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图阻止自动关闭标签,但以下设置似乎不起作用:

I'm trying to prevent auto closing tags, but the following setting doesn't seem to work:

{
    "html.autoClosingTags": false,
}

还必须做什么才能使自动关闭标签消失?

What else must be done to make auto-closing tags go away?

推荐答案

以防万一看到这个的人发现 HTML 标签仍在 JSX 文件中被自动关闭.您需要的设置是:

Just in case anyone looking at this is finding that HTML tags are still being automatically closed inside JSX files. The setting you need is:

{
  "javascript.autoClosingTags": false,
  "typescript.autoClosingTags": false
}

这篇关于Visual Studio Code 禁用自动关闭标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆