onecentlin / laravel-blade-snippets-vscode

Laravel blade snippets and syntax highlight support for Visual Studio Code
MIT License
137 stars 38 forks source link

Snippets taking priority over HTML #101

Open johnRivs opened 5 years ago

johnRivs commented 5 years ago

If I type p cause I want Emmet to expand it to <p></p> the first thing I get is this extension's b:php. Is there a way to put all the snippets at the bottom of suggestions so I can access them via b: instead?

I can't do <p and press tab. It won't autocomplete and even if it did, I write more HTML than Blade so I'd still want the snippets to be the thing I have to write b: for.

Ares9323 commented 5 years ago

Try adding in settings "editor.snippetSuggestions": "inline"

johnRivs commented 5 years ago

I had it set to top so I changed it to inline and Emmet's p shows before b:php but now Emmet is always first, so if I type b:p this is what happens now:

Ares9323 commented 5 years ago

image You have to choose between these options, if you want snippets first, choose top, if you want them at the bottom, choose bottom, inline just mixes them with emmet and sort them alphabetically

Ares9323 commented 5 years ago

However, i hate typing "b:p" so I just added a custom snippet that shows first when I type "php" (with my inline setting)

image

Here's the code if you like this solution:

image (I'm sorry if it's a screenshot but if I paste it as code the indentation/tabulation sucks