Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code HTML mode option to turn off auto close tags

I cannot figure out the option to turn off the new "feature" where the VS Code HTML mode editor types stuff for you in the following scenario:

I type <b> and when I hit that last > it then types </b> which I then have to delete and move to where I want it.

How do I keep VS Code from typing stuff for me in this case? I have these two options set like this:

"editor.quickSuggestions": false,
"editor.autoClosingBrackets": false,

Sort of the opposite of this question: VSCode not auto completing HTML

like image 894
Jared Updike Avatar asked Sep 24 '17 16:09

Jared Updike


1 Answers

I found it:

// Enable/disable autoclosing of HTML tags.
"html.autoClosingTags": true,

This new feature shipped with autoClosingTags set to true by default, which was, unfortunately, a disruptive change if you were used to being able to type without random stuff being inserted into your document as a side effect.

Setting autoClosingTags to false restores the original behavior.

"html.autoClosingTags": true,
like image 58
Jared Updike Avatar answered Oct 27 '22 16:10

Jared Updike