dan674
dan674

Reputation: 2127

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

Seems like a new feature - when I type <View> it turns into <View></View>. Can't imagine why anyone would want that but witholding judgement, how do I turn it off?

Upvotes: 14

Views: 5730

Answers (2)

dan674
dan674

Reputation: 2127

You can turn it off with the following setting:

"javascript.autoClosingTags": false

Upvotes: 19

vsr
vsr

Reputation: 1137

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. If this is set to true, make it 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.

Upvotes: -1

Related Questions