Sublime Text fragment does not work in .scss files

I have the following save in ~ / Library / Application Support / Sublime Text 3 / Packages / User as sass_mq.sublime-snippet :

 <snippet> <content><![CDATA[ @include respond-min() {} ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>mq</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.sass</scope> </snippet> 

I got source.sass by pressing cmd + opt + p and looking at the status bar.

It works in all other file types if I delete an area but never in .scss files.

Is my syntax wrong?

+4
source share
1 answer
 <scope>source.sass</scope> 

You have a scope limited to sass files.

I think you should include both sass and scss in the scope. Try using this line instead.

 <scope>source.scss, source.sass</scope> 
-1
source

Source: https://habr.com/ru/post/1481193/


All Articles