akalongman / sublimetext-codeformatter

Code Formatter plugin for ST2/ST3
MIT License
772 stars 130 forks source link

[SCSS-JS]New line with children rules #380

Closed notrealdev closed 4 years ago

notrealdev commented 6 years ago

Hi everyone, i have some question I have block sass, js code, how to reformater from

.footer-widget {
    float: left;
    width: 100%;
    padding: 55px 0 70px 0;
    .widget {
        float: left;
    }
}

to ( need new line with each children rules )

.footer-widget {
    float: left;
    width: 100%;
    padding: 55px 0 70px 0;

    .widget {
        float: left;
    }
}

from

var red = false;
if ( !red ) {
...
}

to ( need space after ! and variable )

var red = false;
if ( ! red ) {
...
}