I
I
Igor Pavlenko2016-03-29 08:37:23
Sass
Igor Pavlenko, 2016-03-29 08:37:23

SCSS Variable Completion in Sublime?

Sublime doesn't do this out of the box for some reason..
Are there any plugins for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evanre, 2016-04-07
@Evanre

I have not come across such plugins, I myself use Emmet's snippets for this, very convenient. read here.

"snippets": {
    // "html": {
    //	"abbreviations": {
    //		"example": "<div class='example' title='Custom element example'>"
    //	}
    // }
    "css": {
      "abbreviations": {
        "mql": "@include breakpoint(${1:xlarge}) {\n\t|${2}\n}",
        "mq": "@include breakpoint(${1:large}) {\n\t|${2}\n}",
        "mqm": "@include breakpoint(${1:medium}) {\n\t|${2}\n}",
        "mqs": "@include breakpoint(${1:small only}) {\n\t|${2}\n}",
        "flex": "@include flex(${1:null}, ${2:null}, ${3:null}, ${4:null}, ${5:null});",
        "inc": "@include ${1};",
        "ext": "@extend ${1};",
        "clear": "@include clearfix;",
        "qqq": "&${1:-} {${2}}",
        "dn": "display: none;",
        "db": "display: block;",
        "df": "display: flex;",
        "di": "display: inline;",
        "dib": "display: inline-block;",
        "trans": "transition: \\$transition;",
        "colw": "color: \\$whitish;",
        "colb": "color: \\$blackish;",
        "colp": "color: \\$primary;",
        "cols": "color: \\$secondary;",
        "bgcw": "background-color: \\$whitish;",
        "bgcb": "background-color: \\$blackish;",
        "bgcpr": "background-color: \\$primary;",
        "bgcs": "background-color: \\$secondary;",
        "hover": "@include superhover {\n\t|${1}\n}",
      }
    },
  },

E
Enrage, 2016-08-12
@Enrage

I did not find a plug-in with auto-cooking on the fly. But there is a good alternative. I use this plugin: List Stylesheet Variables . There you need to press hot keys, and a list of used variables will come out. Suitable for both Less and Scss.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question