Skip to content
This repository

Enable for SCSS #85

Closed
paulirish opened this Issue · 17 comments

9 participants

Paul Irish Eric Curtis Sergey Chikuyonok Jupiter St John certainlyakey Sergey Zarouski Heri Setiawan Lewis Dexter Litanzios
Paul Irish

I use emmet within my scss but i need to manually change my filetype back to CSS for it to work.

I use sublime-text-haml-sass for scss.

Could it also work in scss by default?

Eric Curtis

Not sure if this would work for you but I am using Nathos's bundle and set the syntax to Sass

https://github.com/nathos/sass-textmate-bundle

Sergey Chikuyonok
Owner

It’s about expanding abbreviation by Tab key?

I’ve just installed https://github.com/n00ge/sublime-text-haml-sass and it works fine for me.

The reason why it may not work might be in current scope that is not matched to ones defined here: https://github.com/sergeche/emmet-sublime/blob/master/Default%20(OSX).sublime-keymap#L331.

Could you please press Ctrl+Shift+P in your SCSS file post here a scope name displayed in ST2 status bar?

Paul Irish
Sergey Chikuyonok
Owner

That’s weird: looks like it detected current syntax as HAML, not SASS.
I’ve just pushed updated syntax detector, let me know if it helps.

Jupiter St John

I had a similar issue with the tab key in sublime text I use the other mapping ctrl + e

Paul Irish
Sergey Chikuyonok
Owner

@paulirish does updated version solved this issue?

certainlyakey

It seems 'select_next_item', 'select_previous_item', 'toggle_comment' do not work in SASS files.
I tried two SASS-related packages, n00ge's one and nathos' (both are mentioned earlier). If I switch syntax to CSS, the commands function, if back to SASS, they do not.
I have no problem with tab expansion though.

Sergey Chikuyonok
Owner

@certainlyakey these features are available for HTML and CSS syntaxes only. You may request SCSS/SASS/LESS support in the main repo: https://github.com/emmetio/emmet/issues

Sergey Chikuyonok
Owner

The most recent Emmet version might solve this issue, please check if it works for you.

certainlyakey

Still not working, it seems.

Sergey Zarouski

In my case it didn't work because package control didn't update emmet. Probably because I added repository url manually when emmet wasn't among official package manager repositories. So fix is easy - remove emmet, remove related to emmet repositories in \Data\Packages\User\Package Control.sublime-settings, install emmet from package manager again and have fun.

Sergey Chikuyonok
Owner

I guess it works now, closing.

Heri Setiawan

uninstall and reinstall Emmet via Package manager didn't work for me. Anyone?

Sergey Chikuyonok
Owner

@zukilover you should provide more info in separate issue.


With sass-textmate-bundle :
nathos/sass-textmate-bundle#38

Lewis Dexter Litanzios

Hey,

I switched from https://sublime.wbond.net/packages/Syntax%20Highlighting%20for%20Sass
to https://sublime.wbond.net/packages/SCSS and everything works okay

Hope it helps someone

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.