Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Toggle whitespace in HTMLNew to Visual Studio Code? Get it now.
Toggle whitespace in HTML

Toggle whitespace in HTML

Mikhail Temkine

|
1,825 installs
| (0) | Free
Toggles the whitespace between tags in HTML files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HtmlWhitespaceEliminatorToggle

This is an extension which toggles HTML file whitespace.

Convert:

  • >(\r?\n\s*)< --> $1><

Revert

  • (\r?\n\s*)>< --> >$1<.

The extension will default to the first conversion if the file has mixed whitespace.

The default keyboard shortcut to both convert and revert is Ctrl+Shift+J.

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