Is there a way to allow one liner in scss code style

I want to use one liner in scss, but I couldn't find out if it's possible.

This is a example code style of `scss`.

table.hl {
  margin: 2em 0;
  td.ln {
    text-align: right;
  }
}

And I want to write it by one liner if the element have only a content like:

table.hl {
  margin: 2em 0;
  td.ln { text-align: right; }
}

Is there a way to configure like this?

2 comments
Comment actions Permalink

Hi,

Yes, it's possible. In Settings find checkbox

Editor -> Code Style -> CSS -> Keep single-line blocks

0
Comment actions Permalink

Thanks! It's works perfectly!
So I should have checked `css` config not the `scss`.

0

Please sign in to leave a comment.