close

How to Format Laravel Blade Codes in Visual Studio Code?

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error How to Format Laravel Blade Codes in Visual Studio Code? in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How to Format Laravel Blade Codes in Visual Studio Code Error Occurs?

Today I get the following error How to Format Laravel Blade Codes in Visual Studio Code? in php.

How To Solve Format Laravel Blade Codes in Visual Studio Code Error ?

  1. How To Solve Format Laravel Blade Codes in Visual Studio Code Error ?

    To Solve Format Laravel Blade Codes in Visual Studio Code Error First, install Laravel Blade after that update your settings.json file and add this section

  2. How to Format Laravel Blade Codes in Visual Studio Code?

    To Solve Format Laravel Blade Codes in Visual Studio Code Error First, install Laravel Blade after that update your settings.json file and add this section

Solution 1

Files>Preferences>Settings>Extensions>Blade Configurations

Then Enable format blade file (Follow Image).Then Restart Visual Studio Code.Now Use Shift+Alt+F To format. Now OK.

Solution 2

this solution works for me in 2021

First, install Laravel Blade after that update your settings.json file and add this section

"[blade]": {
  "editor.defaultFormatter": "amirmarmul.laravel-blade-vscode",
  "editor.formatOnSave": true
}

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment