laravel-blade-snippets-vscode icon indicating copy to clipboard operation
laravel-blade-snippets-vscode copied to clipboard

Snippets taking priority over HTML

Open johnRivs opened this issue 5 years ago • 4 comments

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.

johnRivs avatar Sep 15 '19 17:09 johnRivs

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

Ares9323 avatar Sep 18 '19 09:09 Ares9323

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:

johnRivs avatar Sep 18 '19 16:09 johnRivs

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 avatar Sep 18 '19 20:09 Ares9323

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

Ares9323 avatar Sep 18 '19 20:09 Ares9323