Skip to content
Advertisement

How to solve the @json Blade directive red underline on VSC?

This variables are working perfectly, I wonder why are they with a red underline. Anyone knows how to correct this?

enter image description here

Error msg

enter image description here

Advertisement

Answer

Since VSCode doesn’t ship intellisense for [blade] template files in default, we need to install extra extensions for correct grammar checking and snippets support for .blade.php files. Here are some of them

  1. onecentlin.laravel-blade * works best for me onecentlin.laravel-blade
  2. cjhowe7.laravel-blade cjhowe7.laravel-blade

@Gass Hope this helps you.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement