SCSS does not close property #70

Closed
ecurtis opened this Issue Oct 15, 2012 · 10 comments

Projects

None yet

7 participants

ecurtis commented Oct 15, 2012

Hi,

First of all THANK YOU, your work is awesome.

I noticed the when my syntax is set to CSS w100 outputs

width:100px;

When the syntax is Sass I get

width:100px

no closing ;

Would love a fix. Cheers.

Owner

For SASS syntax, default dialect is sass, not scss (it’s important). According to examples from http://sass-lang.com, closing semicolon is not required.

But you can alter this behaviour: in User’s Emmet.sublime-settings file, add the sass.propertyEnd property for preferences section, like this:

{
    "preferences": {
        "sass.propertyEnd": ";"
    }
}

Refer to original file for examples.

ecurtis commented Oct 15, 2012

Worked perfectly thanks again.

@sergeche sergeche closed this Oct 15, 2012
brumm commented Jul 2, 2013

Apologies for reviving this. I'm wondering whether it would be possible to have project-specific emmet settings?

Owner
sergeche commented Jul 2, 2013

It might be available for ST3 editor

This works for doing things like 'w100' > width: 100px;
But if I do 'db' I get display: block (without the propertyEnd).
How can I fix this?

Please note that sass syntax has been dropped as the defaut syntax a while back, it's better to assume scss nowadays: http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax

Owner
sergeche commented Feb 7, 2015

@gregorybolkenstijn try Ctrl+E shortcut. If it create proper output, it means you’re actually expanding native snippet and may want to change this preference: https://github.com/sergeche/emmet-sublime/blob/master/Preferences.sublime-settings#L29

Thanks, that solved my problem!

On Sat Feb 07 2015 at 8:20:29 PM Sergey Chikuyonok notifications@github.com
wrote:

@gregorybolkenstijn https://github.com/gregorybolkenstijn try Ctrl+E
shortcut. If it create proper output, it means you’re actually expanding
native snippet and may want to change this preference:
https://github.com/sergeche/emmet-sublime/blob/master/Preferences.sublime-settings#L29


Reply to this email directly or view it on GitHub
#70 (comment)
.

afider commented Feb 13, 2015

Hi, In my ST3 property "sass.propertyEnd": ";" works well, but if I write fz and press tab key it expands to font-size: not font-size: ; like in css file. On the other hand if I write fz14 it expands correctly with semicolon: font-size: 14px; Can it be fixed?

@egamma egamma referenced this issue in Microsoft/vscode Dec 15, 2015
Closed

closing semicolon emmet expansion SCSS #1064

So, if I want to keep using emmet in SCSS, I must drop tab and start using ctrl + E?
Is there a way to keep using tab like before?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment