Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Minify CSS JSNew to Visual Studio Code? Get it now.
Minify CSS JS

Minify CSS JS

Carlier Richard

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

Minify File

A simple VS Code extension to minify .js and .css files directly from the file explorer.

Features

  • Right-click any .js or .css file in the explorer to minify it.
  • Creates a .min.js or .min.css version of the file in the same folder.
  • Skips files that are already minified (.min.js, .min.css).
  • Displays the amount of size saved after minification.
  • Output shown in both a popup and a dedicated "Minify" output channel.

Usage

  1. Right-click a file (e.g. style.css or app.js) in the VS Code explorer.
  2. Choose "Minify File" from the context menu.
  3. A minified version (e.g. style.min.css or app.min.js) will be created in the same directory.
  4. Don't forget to change <script src="app.min.js"></script> or <link rel="stylesheet" href="style.min.css" />...

Already minified files will be ignored.

Credits

Created by Richard Carlier with ❤️

Requirements

  • No special dependencies required — the extension uses:
    • UglifyJS for JavaScript
    • clean-css for CSS

Extension Settings

This extension does not currently contribute any settings.

Known Issues

None at the moment.

Release Notes

1.0.0

  • Initial release of Minify File

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft