Open files in VS Code and Cursor / Code and APIs

Auto rename HTML tags in VS Code

VS Code can do this for HTML by itself: turn on editor.linkedEditing (open Settings and search for "linked editing"). Then change <div> and </div> follows. For more languages (Vue, Svelte, Astro, PHP, Blade, Twig, ERB, Markdown and others), plus auto close and a box around the matching tag, install the free Tag Auto Rename & Close Tag Sync by Zovo. It uses the same linked editing, so one undo brings both tags back.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)JetBrains IDEs

Free, MIT license. Extension ID zovo.zovo-auto-rename-tag, version 0.2.3. Needs VS Code 1.90.0 or newer.

This guide is also in Deutsch, Español, Français, Italiano, 日本語, Polski, Português (Brasil), 简体中文.

Renaming section to section-card in a Vue file: the closing tag changes with it and both tags have a box
Renaming section to section-card in a Vue file: the closing tag changes with it and both tags have a box.

Steps in VS Code

  1. Install Tag Auto Rename & Close Tag Sync from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.zovo-auto-rename-tag.
  2. Open an HTML, JSX, Vue, PHP or other template file and change the name in an opening tag. The closing tag changes as you type.
  3. Type > after an opening tag and the closing tag appears after the cursor. Type </ and the name of the open element is filled in.
  4. Put the cursor on a tag and both tags get a box. Right-click for Go to Matching Tag and Select Tag Content.
  5. Click the Tags item in the status bar to see what is on for this file, or to turn the extension off for one language.

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.zovo-auto-rename-tag and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/zovo-auto-rename-tag.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What Tag Auto Rename & Close Tag Sync handles

What it does not do

In JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, CLion and others)

Other options

Install counts and Open VSX status were checked on 9 November 2026. Descriptions in quotes are the extensions' own.

Questions

Does VS Code rename the closing tag by itself?

Yes, in HTML, once you turn on editor.linkedEditing. It is off by default. This extension turns it on for the languages it supports and finds the matching tag in each of them.

Does undo still work?

Yes. Your edit and the change to the matching tag are one undo step, because the rename uses VS Code's own linked editing.

Does it work in Cursor?

Yes. Cursor, Windsurf and VSCodium install it from Open VSX as zovo/zovo-auto-rename-tag.

More about Tag Auto Rename & Close Tag Sync

Read the Tag Auto Rename & Close Tag Sync page for every feature and setting, or the source code on GitHub.

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.