Tab size not working in SASS

Hi,

At least I think it's not. In Settings > Code Style > General > Tabs and Indents > SASS > I changed the Tab size from 4 to 2, but it didn't make a difference. Even re-started the IDE and it's still at 4. Am I missing something?

Thanks,
Larry

P.S. This is in version 3.1.1, which is hot off the presses today - thanks!

5 comments
Comment actions Permalink

Please ensure that sass file extension is binded with SASS file type in File | Settings | File Types.
I cannot reproduce it on my machine.

Regards,
Oleg

0
Comment actions Permalink

Hi Oleg,

I think the problem is that I am using the newer .scss format (and file type) as opposed to the older .sass. While SCSS is an option in Settings > File Types, it is not in Settings > Code Style > Tabs and Indents.

-- Larry

0
Comment actions Permalink

Yep, thanks for the clarification, this makes sence. I've create an issue for this: http://youtrack.jetbrains.net/issue/RUBY-8224
Feel free to vote, comment and get notified once it is done.


Regards,
Oleg

0
Comment actions Permalink

Thanks, Oleg!

0
Comment actions Permalink

Youtrack is down right now... I +1 am having issues with SCSS support.

namely:

1) the text colors/styles of child selectors
2) when a new line is created, RM indents the line the same as the previous line, so, if the previous line had 1 tab, the new line will have 1 tab.  If I click away from RM (that is, the RM window becomes inactive), then the tab char is replaced with spaces
3) When a new line is created for a child selector, the indentation is wrong.  There should be +1 indentation from the previous line

I have attached a video showing these issues.  I forgot to highlight the issue for #1 above, but in the video, you can see the issue in the .data-field selector in the middle of the video frame.  You can see that the .label child is light blue while .data-item below it is a darker blue.  They should be the same color.

I applogize if these are not the same/similar issues as discussed in this post.  I heard that the next version of rails will use .scss as default...

RM 3.1.1



Attachment(s):
RM_SCSS_Bugs.wmv.zip
0

Please sign in to leave a comment.