Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>HTML & CSS FormatterNew to Visual Studio Code? Get it now.
HTML & CSS Formatter

HTML & CSS Formatter

Duther

|
8 installs
| (1) | Free
Format and beautify HTML & CSS files with ease. Quick formatting via right-click context menu.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HTML & CSS Formatter

A simple and efficient VS Code extension for formatting HTML and CSS files.

Features

🎨 Format HTML & CSS Files

  • Right-click context menu for instant formatting
  • Format Document command in Command Palette
  • Supports both HTML and CSS files
  • Uses VS Code's built-in formatting capabilities
  • One-click formatting from context menu
  • No configuration needed
  • Works with existing VS Code formatters
  • Lightweight and fast

Usage

Format a Document

Method 1: Context Menu (Recommended)

  1. Open an HTML or CSS file
  2. Right-click anywhere in the editor
  3. Select "Reformat Document"

Method 2: Command Palette

  1. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  2. Type "Reformat Document"
  3. Press Enter

Requirements

  • VS Code 1.95.0 or higher
  • Recommended: An HTML or CSS formatter extension (like Prettier, Beautify, etc.)

Extension Settings

This extension works out of the box with no configuration required.

Known Issues

None at this time. Please report issues if you encounter any problems.

Release Notes

0.0.3

  • Added context menu "Reformat Document" command
  • Performance improvements
  • Bug fixes

0.0.2

  • Stability improvements

0.0.1

  • Initial release
  • Basic HTML & CSS formatting

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details


Enjoy formatting your HTML & CSS files! 🚀

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