Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tommykw/remove-this-tag


https://github.com/tommykw/remove-this-tag

vscode-extension

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# Remove This Tag

A Visual Studio Code extension that allows you to quickly remove HTML-like tags and their corresponding closing tags in HTML, JSX, TSX, and Vue files.

## Features

- Removes both opening and closing tags with a single action
- Supports multiple file types:
- HTML (.html, .htm)
- React JSX (.jsx)
- React TSX (.tsx)
- Vue (.vue)
- Works with nested tags
- Preserves content between tags
- Available through Quick Fix menu (lightbulb)

## Usage

1. Place your cursor inside any tag you want to remove
2. Click the lightbulb icon or press `Ctrl+.` (`Cmd+.` on macOS)
3. Select "Remove this tag" from the menu

## Examples

### HTML
```html


Hello World!


Hello World!

```

### React (JSX/TSX)
```jsx
// Before


Click me

// After removing Icon tag

Click me

```

### Vue
```vue


Hello Vue!


Hello Vue!

```

## Requirements

- Visual Studio Code version 1.96.0 or higher

## License

This extension is licensed under the [MIT License](LICENSE).