VSCodeBeautify icon indicating copy to clipboard operation
VSCodeBeautify copied to clipboard

newline_between_rules still not working?

Open marcusdiy opened this issue 5 years ago • 1 comments

  • Operating System (+Version): Windows 10
  • VS Code Version: 1.38
  • beautify Version: 1.5.0

Provide the settings you use, settings.json :

{
...
"beautify.config": {
        "css": {
            "newline_between_rules": false,
            "selector_separator_newline": false,
            "space_around_selector_separator": true,
            "space_around_combinator": true
        }
    }
...
}

Action performed

F1 -> Format or Ctrl + Alt + Shift + F

Expected results

Expected to keep css rules in one line instead of splitting the rules.

* { margin: 0; padding: 0; box-sizing: border-box }
body {font-size: 16px}
img { max-width: 100%; vertical-align: middle; }

Actual results

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
body {
    font-size: 16px
}
img {
    max-width: 100%;
    vertical-align: middle;
}

marcusdiy avatar Sep 12 '19 21:09 marcusdiy

up

marcusdiy avatar Sep 21 '19 19:09 marcusdiy