Open edenzul opened 3 years ago
@edenzul as much as I know, by default VS Code doesn't have a language server for php. There's an extension PHP Intelliphense with powerful server language associated with .php
files, but here's the thing...
This "blade" extension defines a new php language with different id instead of extending existing one. So .blade.php
files associated with this language to provide syntax highlight, snippets etc - everything from this extension. But files cannot be associated with two languages simultaneously. So you have to switch associated language back and forth to get what you need - blade syntax, snippets, format, or php suggestions
At least for now, that is how it works
Hi all,
need some help here. my goal is to have syntax auto-suggestion & auto formating works for both php file and blade file.
when I enable "Laravel Blade Snippets", the syntax suggestion function in blade.php suddenly not working. But when I disable the "Laravel Blade Snippets", the php syntax suggestion is working again for blade.php. I tried to make it works by reinstall, restart and modify the editor.defaultformater, it seems still unsuccessful. is that behavior is expected ? are there conflicting with the extensions? kindly please share your experience how to resolve this issue.
current extensions & vscode in use:
thanks a lot for your supports.