HTML formatter and CSS formatter for VS Code, by Zovo. Format HTML, CSS, SCSS and LESS files, and the <style> and <script> blocks inside a page, with zero config. It follows your .editorconfig, keeps <pre>, <textarea> and inline tags as written, and never reorders attributes. Everything runs offline with the bundled js-beautify, so there is no Node, npm or config file to set up.
Format Document (Shift+Alt+F, Shift+Option+F on macOS) and Format Selection for HTML, CSS, SCSS and LESS.
Formats the CSS in <style> and the JavaScript in <script> inside HTML.
Zero config: uses the editor's indentation, then .editorconfig (indent style and size, end of line, final newline, max line length).
Keeps what you wrote: the contents of <pre> and <textarea>, inline tags on their line, attribute order, the blank lines between blocks (at most one in a row), the head and body indentation style of the page, and template tags such as {{ }} and {% %}.
In SCSS and LESS, multi-line maps and function calls keep their layout, and trailing comments stay on their line.
Format on save: turn on zovoHtmlFormat.formatOnSave, or run "Use as Default Formatter" and VS Code's own editor.formatOnSave.
ZOVO PRO AVAILABLEOne-time purchase · No subscription
Add Pro tools to HTML Formatter & CSS Formatter
Format a folder with a diff preview. Formats every HTML, CSS, SCSS and LESS file of a folder in memory, shows a diff of each changed file and writes only the ones you keep checked.
Minify HTML and CSS. Writes .min.html and .min.css copies without comments and needless whitespace, with a report of the bytes and gzip bytes saved per file.
HTML lint report. Checks every page for images without alt text, form fields without labels, duplicate ids, skipped heading levels and more, as a Markdown report and in Problems.
Yes. HTML Formatter & CSS Formatter is free and MIT licensed.
How do I install HTML Formatter & CSS Formatter?
Click "Install in VS Code" above, or search for zovo.zovo-html-formatter in the Extensions view.
Marketplace README snippet (copy link for VS Code Marketplace)
See full docs & install options at [vscode.zovo.one/extensions/zovo-html-formatter/](https://vscode.zovo.one/extensions/zovo-html-formatter/), browse all Zovo VS Code extensions at [vscode.zovo.one](https://vscode.zovo.one/), or explore [Zovo Pro](https://vscode.zovo.one/pro/).
Auto rename tag and auto close tag as you type in HTML, JSX/TSX, Vue, Svelte, PHP, Blade, Twig, XML and Markdown. One undo step for both tags, never pairs <br> or TypeScript generics, highlights the matching tag. Free, no sign-in, works offline.
Run C++ and C code with one click: compile and run the current file with gcc, g++, clang or clang++. Interactive input in the terminal, an Input panel with saved test cases and diffs, errors in Problems, Stop for endless loops, per-file flags. Free, no sign-in, works offline. Zovo Pro adds a sanitiz
JavaScript playground and TypeScript scratchpad for VS Code: the value of each line shows at the end of the line as you type, with console.log output and errors on their own lines. A live JS and TS runner for quick tests and a REPL-style scratch file, with no tsconfig, no setup and no sign-in. Free,
Free and offline. CSS class names and id completion in HTML, React, Vue, Svelte, Angular, PHP and Blade, from every CSS, SCSS and Less file in your project, <style> blocks, linked style sheets and CSS modules. Go to definition and hover. Light on CPU in big monorepos.
Free HTML preview and HTML viewer beside your editor. Linked CSS, JS and images load, it updates as you type, and nothing is sent anywhere. No sign-in, no server, works offline. Zovo Pro adds save as one file, an accessibility and SEO check and a folder link check.
XSD viewer for VS Code: open XML Schema (.xsd) files and the schemas in .wsdl files as a tree and a diagram, with imports and includes resolved across the workspace, search and jump to line. Offline, no account.