[英]Laravel blade prettier formatting but removed the syntax highlighting and snippets
I added *.blade.php
as html in the files.associations
to have prettier format for my blade.php
files but this results to remove the snippets and highlighting needed in the blade.php
files.我在
files.associations
添加了*.blade.php
作为 html,以便为我的blade.php
文件提供更漂亮的格式,但这导致删除了blade.php
文件中所需的片段和突出显示。 I'm using Prettier for my formatting and Laravel Blade Snippets for my highlighting and snippets.我使用 Prettier 进行格式化,使用 Laravel Blade Snippets 进行突出显示和片段。 Is there any other way to format blade files as html but keep the snippets and highlighting?
有没有其他方法可以将刀片文件格式化为 html 但保留片段和突出显示?
With *.blade.php
in files.associations
在
*.blade.php
中使用*.blade.php
files.associations
without *.blade.php
in files.associations
在
files.associations
没有*.blade.php
files.associations
I had the same issue.我遇到过同样的问题。 The only thing that works for me was:
唯一对我有用的是:
Install this extension: Laravel Blade安装这个扩展: Laravel Blade
Add in settings.json
在
settings.json
添加
"[blade]": { "editor.defaultFormatter": "amirmarmul.laravel-blade-vscode", "editor.formatOnSave": true }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.