Laravel Blade File Open as Blade Type in VSCode


I’m wondering if it is possible to automatically set language mode to blade whenever I open the blade.php file in VSCode? Because Laravel Blade Formater works fine with the blade.php file type.

I tried adding "files.associations": {"*.blade.php": "blade"} but its not working as what I expected.

Language mode: HTML,
Formatter: Not working
Example code snippet

Language mode: Blade,
Formatter: Working
Example code snippet

Source: Laravel

Categorised as laravel, php, visual-studio-code Tagged , ,


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us