HookyQR / VSCodeBeautify

Enable js-beautify (https://github.com/beautify-web/js-beautify) in VS Code
MIT License
606 stars 180 forks source link

SCSS Formatting Wrap, Align, Indent #279

Open Domvel opened 5 years ago

Domvel commented 5 years ago

The SCSS Formatting is not correctly. The indent (align) is removed and it does not wrap as expected.

Expected:

$color-blue: (
  50: #000000,
  100: #000000,
  200: #000000,
  contrast: (
    50: #ffffff,
    100: #ffffff,
    200: #ffffff
  )
);

Currently Formatted:

$color-blue: (50: #000000,
100: #000000,
200: #000000,
contrast: (50: #ffffff,
100: #ffffff,
200: #ffffff));
  1. Wrap after and before bracket ( ).
  2. Indent / Align levels.

VS Code 1.29.1 Beautify: 1.4.7

HookyQR commented 5 years ago

Odd. It's not an SCSS formatter by default, but does have some support. You may find an related issue on https://github.com/beautify-web/js-beautify, the project that does the grunt work in this extension.