Skip to content

What do you think about Visual Studio Marketplace? We are looking for feedback from developers like you! Take the survey

| Marketplace
Sign in
Visual Studio Code>Formatters>CSS CompressorNew to Visual Studio Code? Get it now.

CSS Compressor

bestvow

|
64,197 installs
| (7) | Free
Minify or Compact your CSS files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CSS Compressor

Clean and [Compact | Minify] your CSS files .

Actually you also can Beautify your css file with option{format: 'beautify'}

Thanks

This extension completely depend on clean-css and the author is jakubpawlowicz , thanks nice man!

Screenshot tools snipaste

icon icons8

Usage

Press shortcuts shift+alt+f to format CSS file (make sure current file you edit type is css)

Options

reference for here

  • default option

    {
      format: 'keep-breaks',
      compatibility: 'ie8'
    }
    

    (oh , ie8 I know !)

    result

  • beautify output

    {
      format: 'beautify'
    }
    

    result

    yes , you can disabled break between two selectors see options

  • with empty option will output minify css file

    { }
    

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft