Home Download Buy Blog Forum Support

SASS / SCSS

SASS / SCSS

Postby Zoom on Mon Jul 30, 2012 6:52 pm

Hello,

I just got ST2 to try it out. I installed Sublime Package Control and then the SASS and SCSS packages.

For some reason I get no code hinting from any of them. (I select SCSS or SASS from the bottom right of the screen)

For example if I type:

Code: Select all
body {
    f
}


I would expect to come with a list with "font-weight", "font-size" etc, but the only code hint it gives is "for" which creates the following:

Code: Select all
@for $i from 1 through 3 {
      .item-#{$i} {
         
      }
   }


What am I doing wrong?
Zoom
 
Posts: 4
Joined: Mon Jul 30, 2012 6:43 pm

Re: SASS / SCSS

Postby Zoom on Mon Jul 30, 2012 6:55 pm

If it matters I am using Windows 7 64bit
Zoom
 
Posts: 4
Joined: Mon Jul 30, 2012 6:43 pm

Re: SASS / SCSS

Postby tuscanidream on Mon Jul 30, 2012 8:09 pm

Code hinting works perfectly for me. I installed package control and then the Sass package (yesterday), just as you did. I am using Mac OS 10.8 though.

Does your sass code have colored syntax?
tuscanidream
 
Posts: 7
Joined: Sun Jul 29, 2012 10:43 pm

Re: SASS / SCSS

Postby Zoom on Mon Jul 30, 2012 8:35 pm

Yes, the syntax is colored, but I get no relevant code hinting.

When it gives something it is irrelevant (see image attached)

scss.gif
scss
scss.gif (23.04 KiB) Viewed 1093 times
Zoom
 
Posts: 4
Joined: Mon Jul 30, 2012 6:43 pm

Re: SASS / SCSS

Postby Zoom on Tue Jul 31, 2012 8:25 pm

Any explanation for the above behavior?

Am I doing something wrong, or is that a bug?
Zoom
 
Posts: 4
Joined: Mon Jul 30, 2012 6:43 pm

Re: SASS / SCSS

Postby Gabri on Sat Aug 25, 2012 10:50 am

I'm interested to know how to make CSS auto-completion works in SASS/SCSS too, any help?
Gabri
 
Posts: 7
Joined: Fri Dec 30, 2011 9:11 am

Re: SASS / SCSS

Postby ReinierK on Sat Aug 25, 2012 2:25 pm

I might be wrong, but I think a file type (scss in this case) can only have one active 'language'. So if the scss language that comes with the package doesn't contain all the standard CSS completions, then there's no way to get it to work.

I run into the same problem with a jQuery completions file I'm writing: I need to extend on the standard js syntax, which seems impossible without actually touching the js language file.

Maybe I'm wrong (I hope so), but I think it's either CSS or SCSS completions.
ReinierK
 
Posts: 23
Joined: Fri Aug 24, 2012 8:27 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 24 guests