vscode-blade-formatter is a VSCode extension that formats Blade template files with opinionated style rules.
The extension addresses the need to maintain consistent formatting in Laravel Blade templates, which mix PHP logic with HTML markup. It works by automatically indenting markup inside directives, adding spacing around Blade template markers, and formatting PHP code within templates according to PSR-2 standards. The tool also sorts Tailwind CSS classes according to project configuration, reducing manual formatting work across template files.
Developers working with Laravel projects should adopt this extension if their team uses Blade templates and wants automated, consistent formatting without manual intervention. It suits projects that already use Tailwind CSS, as the class-sorting feature integrates with tailwind.config.js. The extension supports modern PHP syntax including null safe operators and named arguments. For teams seeking programmatic formatting outside VSCode, the underlying blade-formatter library provides the same functionality.
The project maintains active development with regular updates addressing both bug fixes and feature enhancements. Pull requests receive timely review and integration. The maintainer responds consistently to issues raised by users, indicating ongoing engagement with the community. Development activity shows sustained attention to the codebase rather than periods of dormancy.