How can I stop Visual Studio Code from auto-adding closing tags?

December 15, 2025 4 answers
Asked by CuriousCoder91
I've tried to remove most of the auto-completion features in Visual Studio Code, but it still automatically adds the closing tags (like

) at the end of my strings. This drives me crazy because instead of learning to add these tags myself and improving my coding skills, I have to manually move the cursor after it inserts them, which is really frustrating. What can I do to completely disable this feature?

Answers

CodeNinja23
Check if there's a setting for "auto close tags" or something similar in your preferences. There are usually many options available that could help.
Reply to this answer
TechSavvy88
Is this issue occurring in an HTML file or JavaScript file? That could change how the editor behaves.
Reply to this answer
SimpleScripter77
Have you installed any extensions, like Prettier? Sometimes extensions modify the default behavior.
Reply to this answer
CuriousCoder91
That did it! I found the setting and turned off the auto closing tags. Thanks for the help!
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions