Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Close HTML/XML tagNew to Visual Studio Code? Get it now.
Close HTML/XML tag

Close HTML/XML tag

Compulim

|
387,639 installs
| (9) | Free
Quickly close last opened HTML/XML tag
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Close tag keyboard shortcut

Build Status

Closes last opened HTML or XML tag with Alt+.

Demo showing how close tag works

Usage

By default, close tag is bound to Alt+.. You can still run it thru Command Palette.

  • Bring up Command Palette (F1, or Ctrl+Shift+P on Windows and Linux, or Shift+CMD+P on OSX)
  • Type or select "Close Tag: Close last opened HTML/XML tag"

To close tags without moving cursors or selections, press Alt+Shift+. or closeTag.closeHTMLTagInPlace command.

You can also modify keyboard shortcut with JSON below.

{
  "key": "alt+.",
  "command": "closeTag.closeHTMLTag",
  "when": "editorTextFocus"
},
{
  "key": "alt+shift+.",
  "command": "closeTag.closeHTMLTagInPlace",
  "when": "editorTextFocus"
}

Change log

You can look at the change log here.

Contributions

Love this extension? Star us!

Want to make this extension even more awesome? Send us your wish.

Hate how it is working? File an issue to us.

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