Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Compressed codeNew to Visual Studio Code? Get it now.
Compressed code

Compressed code

Tomas avila

|
336 installs
| (1) | Free
Compress and decompress your JS, CSS and HTML files in the best possible way.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Compressed Code Extension

Compressed Code is a Visual Studio Code extension that allows you to easily compress or decompress the contents of HTML, JavaScript, and CSS files. It simplifies your code by removing extra whitespaces and unnecessary new lines for optimized performance or formatting them for better readability.

Features

  • Compress Files: Removes all unnecessary whitespaces and line breaks from your HTML, JavaScript, and CSS files to minimize file size.
  • Decompress Files: Reformats compressed files by adding appropriate line breaks and indentations, making them easier to read and modify.

How to Use

  1. Open an HTML, JavaScript, or CSS file in Visual Studio Code.
  2. Use the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS) and search for:
    • Compress File: To compress the file.
    • Decompress File: To decompress the file.
  3. Alternatively, you can bind these commands to custom keyboard shortcuts in your VS Code keybindings settings.

Commands

  • compressed-code.compress: Compresses the active HTML, JavaScript, or CSS file.
  • compressed-code.decompress: Decompresses the active HTML, JavaScript, or CSS file.

Supported File Types

  • .html
  • .js
  • .css

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
  3. Search for Compressed Code.
  4. Click Install.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft