6

I use "PHP Intelephense" to format Controller file and "Laravel Blade Formatter" for Blade file and I find it extremely uninteresting to switch between these formatters back and forth.

Is there any efficient way to switch between these two formatter?

1 Answer 1

9

Go to VSCode settings JSON file settings.json and do language specific settings

"[php]": {
    "editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
},
"[blade]":{
    "editor.defaultFormatter": "shufo.vscode-blade-formatter"
}

Laravel Blade Formatter Already run only for Blade and JSON enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

I should have asked it earlier. Google search didn't help much.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.