compulim / vscode-closetag

Quickly close last opened HTML/XML tag in Visual Studio Code
14 stars 5 forks source link

Close tag keyboard shortcut

Version 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.

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.