0

In VSCODE, how do I delete the closing </> in the html but the parent <> doesn't get deleted too?

<div> <!-- 2. which even followed was deleted-->
<p>TEXT</p>
<p>TEXT</p>
<p>TEXT</p>
</div> <!-- 1. This is what you want to delete-->

Please help.

Kenny Ken
  • 19
  • 1
  • 2

1 Answers1

0

Open Visual Studio Code, go to File -> Preferences -> Settings or use the shortcut ctrl + , to open the settings.

Search for the setting Auto Closing Tags. Uncheck HTML: Auto Closing Tags.

enter image description here

These search results allow you to disable auto closing for JavaScript and TypeScript if desired.

Bhaskar2510
  • 158
  • 3
  • 23