Blade suggestions override html auto-complete

I just updated to PhpStorm 2019.3 and I see the Laravel Blade auto-complete suggestions are breaking the HTML auto-complete.

For example: (| pipe characters in example is where cursor ends up)

I used to type P, Tab and get "<p>|</p>". Now when I type P, Tab I get "@parent|".

I used to type U, L, Tab and get "<ul>|</ul>". Now when I type U, L, Tab I get "@default|".

Is there a place I can shut off those Blade suggestions to get the old behavior back?

1
5 comments

There might be a cleaner way to do this, but a workaround I found is to add Live Templates (Settings > Editor > Live Templates > html/xml). The Live Templates seem to be prioritized over wherever the Blade suggestions come from. For example:

Abbreviation: p

Template text: <p>$END$</p>

0

I am having the same problems.

 

Previously I was using PhpStorm 2019.2.5 and I was able to use Emmet in blade template files.

p would expand to <p> and ul>li would expand into an unordered list.

 

After updating to PhpStorm 2019.3.2 it is all kind of messed up.

Now p expands into @parent and ul>li expands into ul><link rel="stylesheet" href="">

If I add *.blade.php to the HTML file type under Editor/File Types the expanding works as I would expect. But now none of the Blade completion workes.

 

There was also an update to the Laravel plugin but I updated those before updating the app and everything seemed to be working fine.

 

Is it possible to download an older version of PhpStorm? This really reduces my productivity.

0

Thank you, that did the trick!

0

Please sign in to leave a comment.