arucwg
Last Updated: February 25, 2016
·
243
· crishellco

Use sass-convert to indent your Sass/SCSS code

You can use sass-convert to indent SCSS code by converting from SCSS to SCSS.

Usage:

sass-convert -F scss -T scss --indent 4 from.scss to.scss (2 is default if not specified)

If you want to re-indent all SCSS files in the entire folder:

sass-convert --in-place --indent 4 -r -F scss -T scss YOUR_SASS_FOLDER_NAME

Credit:
http://iamhlb.com/post/48175381086/use-sass-convert-to-indent-your-sass-scss-code