Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Easy Tag WrapNew to Visual Studio Code? Get it now.
Easy Tag Wrap

Easy Tag Wrap

hosein mg

|
3 installs
| (0) | Free
Easy Tag Wrap lets you quickly wrap any JSX/TSX component or HTML tag with a fragment <>...</> or a custom tag—without manually selecting the text. Simply place your cursor on a tag or component, press Alt+W, and enter a custom tag (or leave empty for a fragment). Works seamlessly with single-line H
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Easy Tag Wrap

A VSCode extension that lets you quickly wrap any HTML/JSX tag or React component with a fragment or a custom component. Just place your cursor on a tag and hit Alt+W.

✨ Features

  • Detects the tag under the cursor, even inside nested structures.
  • Supports JSX components and compound components like <Table.Head>.
  • Handles self-closing tags (<Input />).
  • Produces properly indented output — no need to run Format Document.
  • After wrapping, the cursor is placed inside < > so you can immediately type a component name and let VSCode auto-import it.

🚀 How to Use

  1. Open any JSX/TSX/HTML file
  2. Place the cursor anywhere on a tag (opening, closing, or inside the element)
  3. Press Alt+W
<>
  <div>Hello</div>
</>

Start typing:

<Card>
  <div>Hello</div>
</Card>

🔧 Customization

You can change the default shortcut in your keybindings.json:

{
  "command": "easyTagWrap.wrap",
  "key": "alt+w",
  "when": "editorTextFocus"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft