Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>style-compressorNew to Visual Studio Code? Get it now.
style-compressor

style-compressor

edp1096

|
496 installs
| (0) | Free
Minify CSS
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-style-compressor

Compress each definitions in css to single line

https://github.com/edp1096/vscode-style-compressor


For `scss`, please use original extension

Forked from vscode-scss-format

Appended features

  • Add 1 more line break at comment - \n/* blahblah */
  • Disable space removing for child selector finding, @identifier
    • .parent .child {
    • @media only screen and (max-width:1234px) {
  • Compress all in the active opened file when select nothing

demo

demo

Shortcut key

  • win Ctrl + Shift + i
  • mac Cmd + Shift + i
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft