Home > Enterprise >  VSCode formatting using "Laravel Blade Formatter" and "PHP Intelephense"
VSCode formatting using "Laravel Blade Formatter" and "PHP Intelephense"

Time:02-24

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?

CodePudding user response:

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

  • Related