brackets-snippets icon indicating copy to clipboard operation
brackets-snippets copied to clipboard

Snippet to be applied to multiple scopes - Ex. Sass and CSS

Open caryevans opened this issue 9 years ago • 4 comments

Awesome extension! It would be dandy if a snippet name could support more than one scope (file type)

Ex: "red" - I would like it to generate a red border (border:1px solid red;) that I use in HTML, CSS and LESS/SASS for debugging.

It's entirely possible that I'm missing something, but for some reason, it does not allow me to use the same keyword and assign it multiple "scopes".

caryevans avatar Dec 09 '15 18:12 caryevans

YES PLEASE! Or at the very least make it so snippets in CSS also work automatically in LESS and SASS. It is crazy not to have that.

Lomacar avatar Feb 27 '16 20:02 Lomacar

As workarround you could just create an equal snippet for every scope you want it.

der-hugo avatar Dec 10 '17 14:12 der-hugo

Obviously that is what we want to avoid doing.

Lomacar avatar Feb 15 '18 01:02 Lomacar

well the only alternative I see so far would be to set the scope to "--any--" so at least you don't have to configure them multiple times

der-hugo avatar Feb 21 '18 17:02 der-hugo