Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Minify HTML in PHPNew to Visual Studio Code? Get it now.
Minify HTML in PHP

Minify HTML in PHP

SeemaSoft

|
1,431 installs
| (0) | Free
Minify HTML in PHP is a Visual Studio Code extension designed to automatically optimize HTML files and HTML code embedded within PHP files. This efficient tool removes unused spaces, tabs, and comments, effectively reducing file sizes without impacting the integrity of your PHP code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Minify HTML in PHP

Minify HTML in PHP is a Visual Studio Code extension designed to automatically optimize HTML files and HTML code embedded within PHP files. This efficient tool removes unused spaces, tabs, and comments, effectively reducing file sizes without impacting the integrity of your PHP code.

Features

  • Automatic Minification: Minify HTML code within PHP files with a single command.
  • Space and Tab Removal: Remove unused spaces and tabs for optimized file sizes.
  • Comment Removal: Effortlessly eliminate unnecessary comments from your HTML.

Usage

  1. Open a PHP file containing embedded HTML content.
  2. Use the command palette (Ctrl+Shift+P) and run "Minify HTML in PHP."
  3. Optionally, employ the shortcut Ctrl+Alt+M for swift optimization.

Installation

Find "Minify HTML in PHP" in the Visual Studio Code Marketplace and click "Install."

Contributions

Contributions, issues, and feature requests are welcome! Feel free to check the issues page for known issues and ongoing tasks.

License

This extension is licensed under the MIT License.

Changelog

Please refer to the CHANGELOG.md file for detailed changes over time.


Enjoy optimizing your HTML in PHP files with Minify HTML in PHP!

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