At Sprout, we use CSSComb to sort our declarations and conform our SCSS to our guidelines. One rule that CSSComb can't enforce for us automatically, however, is a line break before a nested selector. Let's fix it in Sublime Text.
- Install plugin RegReplace
- Install plugin Chain Of Command
- Merge files from this gist to your
Packages/User
directory
Now, CTRL-SHIFT-C
will run CSSComb and add extra linebreaks before nested selectors. NEATO.