CSS Snippet


#1

Hello all!

l’d like to create a css snippet but l don’t understand how to do it.

I’d like that when I type « me », it offers me a snippet « media » that writes this :

@media all and (max-width: value) {

}

Thanks for your help. ++


#2

Here is an example you can put in your snippets.cson:

".source.css":
  "@media":
    "prefix": "media"
    "body": """
    @media all and (${1:max}-width: ${2:value}) {
    \t$3
    }$0
"""

#3

Thank you so much!