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?
First, go to the Settings and search for "HTML: Auto Closing Tags" and uncheck the setting that is checked by default.
File > Preferences > Keymaps, Search 'Auto close' and click on install. If it doesn't work, reload the plugin.
↑ The full list of valid self-closing tags in HTML5 is: area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, and wbr.
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 }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With