Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>auto-delete-closing-tagNew to Visual Studio Code? Get it now.
auto-delete-closing-tag

auto-delete-closing-tag

Peppa

|
26 installs
| (0) | Free
Auto delete tag when is closing ~
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto-delete-closing-tag

This plugin will automatically delete the closing tag when you type / in the opening tag.

Features

Before:

<div $1>demo text </div>

When you type / in the $1 position, the closing tag and inner children will be deleted. Then the tag will become Self-closing.

After:

<div />

Before:

<App $1>
  <div>demo text </div>
  <p>demo text</p>
  <span>demo text</span>
</App>

After:

<App />

Installation

  1. Open the Extensions sidebar in VS Code. Then search for "Auto-delete-closing-tag".
  2. Click Install.

Notice

This plugin only works in the [jsx, tsx , html] files.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft