Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Minify selectionNew to Visual Studio Code? Get it now.
Minify selection

Minify selection

Box-Of-Hats

|
20,658 installs
| (5) | Free
Minify just your selection
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Minify selection

Minify just some selected code instead of an entire file.

Commands:

  • Minify Selection: Minify Selected CSS

Language support

CSS

input

a {
    border-color: red;
}

.testclass {
    font-size: 20px;
    color: green;
}

output

a{border-color: red;}.testclass{font-size: 20px; color: green;}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft