Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 682
dan674 Avatar asked Aug 20 '18 22:08

dan674


People also ask

How do I stop auto closing tags in VS Code?

First, go to the Settings and search for "HTML: Auto Closing Tags" and uncheck the setting that is checked by default.

What is enable auto closing tag in VS Code?

Go to File > Preferences > Settings, search for html. autoClosingTags and set it to false . This will make it so when you type <div> , it won't insert </div> automatically, but if you start typing </ , it won't close the tag automatically. You can press ENTER to make it autocomplete for you.


1 Answers

You can turn it off with the following setting:

"javascript.autoClosingTags": false
like image 76
dan674 Avatar answered Oct 14 '22 02:10

dan674