Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Stackfizz Minify & FormatNew to Visual Studio Code? Get it now.
Stackfizz Minify & Format

Stackfizz Minify & Format

devstash

|
3 installs
| (0) | Free
One-click formatter and minifier for 25+ languages: JavaScript, TypeScript, CSS, SCSS, HTML, PHP (even mixed with HTML), Blade, Angular, Vue, Svelte, Python, Go, SQL and more. Minify JS, CSS, HTML, PHP, SCSS, Less and SVG. No config files, nothing else to install, fully offline.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Stackfizz Minify & Format

Format and minify code in one click, in 25+ languages. PHP mixed with HTML, Blade, Angular, Vue, Svelte, Python, Go, SQL and every web language. No config files to write, nothing else to install, nothing sent online.

Format a PHP template in one click: the HTML around the PHP is indented

Format in one click

Click Format in the status bar (bottom right) or the Format button at the top right of the editor. Select some code first to format only that part. One Ctrl+Z (Cmd+Z on macOS) undoes it.

Language What you get
JavaScript, TypeScript, JSX/TSX, JSON, CSS, SCSS, Less, HTML, Vue, Markdown, YAML, GraphQL Prettier formatting, bundled
PHP, including PHP mixed with HTML (WordPress themes, templates) The HTML around your PHP is formatted and indented; complete PHP blocks are formatted too
Laravel Blade (.blade.php) HTML formatted around @if, @foreach, {{ }} and other Blade code
Angular templates (*.component.html), including @if and @for Angular-aware formatting
Svelte, Handlebars Template-aware formatting
XML, SVG, XAML, .csproj, .plist Indented, one element per line
Python Ruff's formatter (Black style)
Go gofmt
SQL Keywords and clauses on their own lines
Anything else Trailing spaces removed, extra blank lines collapsed, final newline added
  • Format on save: run Stackfizz Minify & Format: Toggle Format On Save, or tick it in Settings. The status bar then shows Format · on save.
  • Shift+Alt+F works too: it's a normal VS Code formatter. If your settings point at a formatter that isn't installed, Stackfizz offers once to take over, and changes nothing unless you say yes.
  • Indentation follows your editor: the tab size and spaces/tabs shown in the status bar.

Minify and optimize

Minify a PHP page: the PHP, HTML and CSS all shrink, 34% smaller

What How
JavaScript, TypeScript, JSX, CSS esbuild
HTML, with its inline CSS and JS Template code (<?php ?>, {{ }}) is left untouched
PHP pages, including PHP mixed with HTML The HTML, CSS and JS are minified, and so is the PHP: comments and extra whitespace removed, strings and heredocs untouched
Laravel Blade (.blade.php) Like HTML; Blade comments are removed, @php and @verbatim blocks are kept as written
SCSS, Less Comments and whitespace removed without compiling: variables, mixins and nesting stay. /*! … */ comments are kept
SVG SVGO: removes editor metadata and comments, shortens paths, keeps the viewBox
JSON Whitespace and .jsonc comments removed

Three ways to use it:

  • In the editor: right-click → Stackfizz Minify & Format → Minify. It changes the selection or the whole file, and one Ctrl+Z undoes it.
  • Keep the original: right-click a file or folder in the Explorer → Stackfizz Minify & Format → Minify to .min Copy. app.ts becomes app.min.js, style.css becomes style.min.css, home.blade.php becomes home.min.blade.php. Folders include JavaScript, TypeScript, CSS, HTML and SVG files; pick PHP, SCSS, Less or JSON files by hand. Existing .min files are never minified again, and you're asked before one is overwritten.
  • Replace the original: right-click → Stackfizz Minify & Format → Minify and Replace Original Files. You confirm first, because files that aren't open can't be restored with Ctrl+Z.

You get a summary of how much was saved. Files with a syntax error are skipped and listed, with the line of the problem.

Unminify (Beautify) turns minified code back into readable code.

All tools in one place

Click the tools icon next to Format in the status bar for every tool in one list: Format, Minify, Unminify, Minify to .min Copy, Clean Up Whitespace, Normalize Line Endings, Format On Save and Use as Default Formatter. They're also in the editor right-click menu under Stackfizz Minify & Format, and in the Command Palette (type Stackfizz Minify).

Settings

All are checkboxes or boxes in the Settings UI (Ctrl+, → search Stackfizz Minify). No JSON editing needed.

Setting Default What it does
Format On Save off Format supported files every time you save
Print Width 80 Wrap lines longer than this
Single Quote off 'single' instead of "double" quotes in JavaScript and TypeScript
Semicolons on End JavaScript and TypeScript statements with ;
Trailing Commas all Comma after the last item in multi-line lists
Collapse Blank Lines 1 Most blank lines in a row that clean-up keeps
Max File Size MB 5 Larger text is left alone so the editor stays responsive

FAQ

Do I need PHP, Python, Go, Node or Prettier installed? No. Every formatter and minifier is bundled and runs inside VS Code.

VS Code says "Cannot validate since a PHP installation could not be found". Is that this extension? No. That message comes from VS Code's built-in PHP Language Features, which checks PHP files for errors while you type and needs PHP for that. Formatting and minifying with this extension work without it. To hide the message, open Settings, search php.validate.enable and untick it, or install PHP if you want those live error checks.

I already use the Prettier extension. Will they fight? No. The Format button and format on save use Stackfizz directly. Shift+Alt+F uses whichever formatter VS Code is set to use; run Stackfizz Minify & Format: Use as Default Formatter if you want Stackfizz for that language.

Does it read my .prettierrc? Not yet. It uses the settings above, and the indentation your editor shows.

Which languages can't it format? Rust, Kotlin, Swift and Ruby have no formatter that can run inside VS Code yet. They get the whitespace clean-up.

Requirements

  • Visual Studio Code 1.105 or newer. Also works in editors that install from Open VSX, such as Cursor, Windsurf and VSCodium
  • Nothing else

Privacy

This extension collects no data and sends nothing anywhere. All processing happens on your computer.

Disclaimer

Formatting and minifying rewrite your code. Keep your project in version control (Git) so any change can be reviewed or undone. Provided "as is" under the MIT license.

License

MIT. Bundles Prettier and its PHP, XML and Svelte plugins, Ruff, gofmt, sql_fmt, html-minifier-terser, SVGO, PostCSS and esbuild, each under its own open-source license; see dist/THIRD-PARTY-NOTICES.txt in the installed extension.

Source and issues: github.com/adeshukla/devstash-vscode

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft