Tagify Pro
Rename one tag. The other follows. Instantly.
A modern, dependency-free paired-tag toolkit for HTML, XML, JSX, TSX, Vue, Svelte, Astro, PHP and more.
Why Tagify Pro?
Editing markup means constantly keeping opening and closing tags identical. Tagify Pro removes that chore and adds the small power tools you reach for every day: matching-tag highlight, wrap, unwrap, jump and expand-selection.
|
|
| ⚡ Instant sync |
Type in either tag and its partner updates in the same undo step. |
| 🎯 Matching-tag highlight |
The partner of the tag under your cursor lights up (underline, box or background). |
| 🧩 Wrap & Unwrap |
Wrap selections with section.hero#top-style shortcuts, or strip a surrounding tag in one keystroke. |
| 🧭 Jump & Select |
Jump between the pair, or expand the selection element by element. |
| ✍️ Multi-cursor |
Edit many tags at once; every pair stays consistent. |
| 🪶 Zero dependencies |
A small hand-written scanner. No language server, no background process. |
See it in action
Rename a tag pair
Wrap a selection
Supported languages
| Family |
Language IDs |
| Markup |
html, xhtml, xml, xsl, svg |
| JavaScript frameworks |
javascript, javascriptreact, typescript, typescriptreact, mdx |
| Component frameworks |
vue, vue-html, svelte, astro |
| Server templates |
php, blade, laravel-blade, razor, aspnetcorerazor, erb, html.erb, ejs, twig, jinja, django-html, liquid, nunjucks, handlebars, jsp, volt |
Need another language? Add its identifier to tagifyPro.languages.
Commands & shortcuts
Open the Command Palette (Ctrl/Cmd + Shift + P) and type Tagify Pro.
| Command |
Default shortcut |
What it does |
| Rename Tag Pair |
Alt + Shift + T |
Prompts for a new name and renames both tags. |
| Wrap Selection With Tag |
Alt + Shift + W |
Wraps every selection. Supports tag.class#id shortcuts (uses className in JSX/TSX). |
| Unwrap Tag |
Alt + Shift + U |
Removes the surrounding tag pair and keeps the content. |
| Jump To Matching Tag |
Alt + Shift + J |
Moves the cursor to the partner tag. |
| Select Element Content (Expand) |
Alt + Shift + E |
Selects inner content, then the whole element, then the parent… |
| Toggle Auto Sync |
status bar click |
Turns automatic syncing on or off. |
All shortcuts can be rebound in Keyboard Shortcuts.
Settings
| Setting |
Default |
Description |
tagifyPro.enabled |
true |
Keep paired tags in sync while typing. |
tagifyPro.languages |
(see above) |
Language IDs where the extension is active. |
tagifyPro.maxFileSize |
1000000 |
Files longer than this many characters are skipped. |
tagifyPro.highlight.enabled |
true |
Highlight the matching tag. |
tagifyPro.highlight.style |
underline |
underline, box or background. |
tagifyPro.highlight.color |
(theme) |
Custom color such as #7C5CFF. |
tagifyPro.statusBar.enabled |
true |
Show the status bar item. |
How it works
keystroke ──► pre-filter ──► scan previous text ──► find edited tag ──► edit partner
(is this a (comments, CDATA, (name range + (same undo
tag name?) <script>, JSX, partner index) step)
generics handled)
- A cheap pre-filter ignores every edit that is not a small change inside a tag name, so normal typing costs almost nothing.
- For relevant edits the previous document text is scanned into tags and paired with a stack.
- The partner's name is replaced with the new name, merged into your undo step.
Undo and redo are left alone, because the history already contains both edits.
Good to know
Tagify Pro uses a fast heuristic scanner instead of a full parser, so it stays responsive in every language above. A few honest limits:
- Tags inside JavaScript string literals are not distinguished from real markup.
- In JSX/TSX,
a<b (no space before <) is treated as a comparison or generic, not a tag.
- Tags that are unclosed or mismatched are never changed. Tagify Pro only edits tags it can pair confidently.
Found a case that behaves badly? Please open an issue with a small sample.
Install
Development
npm install
npm test # compile + unit tests
npm run package # produces tagify-pro-<version>.vsix
Pushing to main builds the extension in GitHub Actions and uploads the .vsix as an artifact. Pushing a tag such as v1.0.0 also creates a GitHub release, and publishes to the marketplaces when the VSCE_PAT / OVSX_PAT secrets exist.
License
MIT © Radwan Almsora
Built with care for everyone who has ever forgotten to rename a closing tag.