Sublime Forum

How can I use $ for variable for Mixin in SASS Snippet?

#1

Hi,

I really need to use $ sign for easily replacing my SASS snippets for mixins. The problem is when I am using $ symbol, the mixing snippet does not work.

Here is the code which is not working:
+columns(${1:$columns_2_size: 45%})$2

Now if I just remove the $ from $columns_2_size, it works
+columns(${1:columns_2_size: 45%})$2

I am using lots of customized variables for my SASS mixins, so help would be greatly appreciated; thanks! :slight_smile:

0 Likes

#2

you can escape it with a slash like \$
see also

and ofc the PackageDev package, which will give you syntax highlighting for snippets

2 Likes

#3

Thanks a lot, you are a life saver :relieved:

0 Likes