简体   繁体   English

如何禁用VSCode中的自动关闭JSX标签?

[英]How do you disable auto-closing JSX tags in VSCode?

Seems like a new feature - when I type <View> it turns into <View></View> . 似乎是一项新功能-当我键入<View>它会变成<View></View> Can't imagine why anyone would want that but witholding judgement, how do I turn it off? 不能想象为什么有人会这么想,但断断续续的判断,我该如何关闭呢?

您可以使用以下设置将其关闭:

"javascript.autoClosingTags": false

Well, it's a nice feature but if you want to turn it off completely then you can hit the gear icon on left-bottom side corner and go to settings > search editor.autoClosingBrackets . 好吧,这是一个不错的功能,但是如果您想完全关闭它,则可以点击左下角的齿轮图标,然后转到settings >搜索editor.autoClosingBrackets If this is set to true, make it false . 如果将其设置为true,则将其设置为false This is the default configuration settings you can override but in case you've installed some other plugin (related to React) then let me know. 这是您可以覆盖的默认配置设置,但是如果您安装了其他插件(与React相关),请告诉我。

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

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