Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ligonsker's avatar

Is there a way to configure PHP Intelephense to format blade syntax?

When using PHP Intelephense by Ben Mewburn, it will not indent blade syntax, it remains:

@php
$test_var = "test";
@endphp

But is it possible to make it indent it?

@php
    $test_var = "test";
@endphp

Ty!

0 likes
2 replies
drehimself's avatar

I use a separate package to automatically indent my blade files on save: https://marketplace.visualstudio.com/items?itemName=shufo.vscode-blade-formatter. Works great but you might have to tweak some of the extension settings. Here's mine:

"[blade]": {
  "editor.defaultFormatter": "shufo.vscode-blade-formatter",
  "editor.formatOnSave": true
},
"blade.format.enable": true,
"bladeFormatter.format.wrapAttributes": "preserve-aligned",
"bladeFormatter.format.wrapLineLength": 9999,
2 likes
Ligonsker's avatar

@drehimself thank you! You are very familiar, I am pretty sure I saw a lot of tutorials with you???!

If you are the teacher of the tailwind course, who made the GitHub replica, you are great, really explain well, thank you!

1 like

Please or to participate in this conversation.