autoClosingBrackets Not Working

Hi all,

(not sure if this is correct place to post this question)

VSCode doesn’t automatically close HTML tags.

My Workspace config file says:
“editor.autoClosingBrackets”: true,

but it still doesn’t work.

For example, when you type in "<script" the IntelliSense suggestions pops up and you press enter on “script” it doesn’t close the tag like this:

<script>

</script>

but it stays like this:
<script>

Any idea how to fix this?

also, i noticed that if i manually enter <html> and </html> the closing html tag gets correctly indent-aligned with the opening tag automatically. But if i do the same with <script> and </script>, the closing tag does NOT get correctly auto-aligned. How to fix?

thx

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.