In previous versions you could write <div>, press enter and get a newline. Pressing enter in 1.16.1 now closes the tag.
Please bring back the old behaviour when autoClosingTags is set to false.
Steps to Reproduce:
<div>It's actually the > that closes the tag. It's a new feature in 1.16 and we want, for now, keep it enabled by default. Please set "html.autoClosingTags": "false" in your user settings.
Yeah, but setting "html.autoClosingTags": "false" in the user settings doesnt revert back to the old behaviour.
When its off, you now get a intellisense suggestion of </tag> when you write <tag>.
So if I want a newline after my tag I now haft to press Esc to close the suggestion and then press enter.
In previous versions you didnt get a suggestion and could press enter directly.
I think when autoClosingTags is false you shouldnt get a suggestion of </tag> just like in the older versions of vscode.
autoClosingTags should be on by default. It should respect if the user sets it's preferences to false, but should be true by default.
"auto-close-tag.SublimeText3Mode" set to true"html.autoClosingTags": false in user settings, when I type <div> and hit Enter it returns a closed tag like <div></div>. but this time as an autocomplete option (I guess).
Yeah, I think whoever implemented this tested the in-line case, but not the multi-line case. To be exceedingly clear (which is the only way to communicate that is actually communication):
STEPS TO REPRODUCE:
Set:
"html.autoClosingTags": false
In an HTML editor tab, create the following text on exactly one line, verbatim, with no leading and no trailing spaces:
~~~
stuffthings
~
Position the cursor on that line, in the first column.
Press only these keys in exactly this order:
'<', 'b', 'u', 't', 't', 'o', 'n', '>', [RETURN]
for a total of exactly precisely nine (9) keystrokes with a tolerance of zero (0).
EXPECTED EXACT RESULT:
~~~
_(assuming 3-space auto-indentation)_
OBSERVED FAILURE:
~~~
stuffthings
~
IMHO, options to disable features should NEVER be tested by people who like those features. They always miss something. So, since I thoroughly detest anything that treats unmodified keystrokes (ASCII values between 32 and 127 with or without SHIFT but not including CTRL or ALT) as anything other than input that should be recorded verbatim and without extension, I'll be happy to test any repairs.
Fixed by no longer triggering code completion on >. The proposal is still there but is only seen when actively pressing ctrl + space after >
Most helpful comment
Yeah, but setting
"html.autoClosingTags": "false"in the user settings doesnt revert back to the old behaviour.When its off, you now get a intellisense suggestion of
</tag>when you write<tag>.So if I want a newline after my tag I now haft to press Esc to close the suggestion and then press enter.
In previous versions you didnt get a suggestion and could press enter directly.
I think when autoClosingTags is false you shouldnt get a suggestion of
</tag>just like in the older versions of vscode.