-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
newline_between_rules not working #158
Comments
Any updates on this yet? |
This would be very lovely to have |
+1 |
+1 |
I think the problem is that those rules you're applying only work in HTML, https://github.com/HookyQR/VSCodeBeautify/blob/master/Settings.md as you can see on this page, there is no rule that does that in CSS/SCSS. If there's any way to do that, I'd like to know about it, because I don't like it either. |
The rule 'newline_between_rules' is for CSS as per that document. |
You're very right, I just tested it and it works fine, tested on Windows 10 in Visual Studio Code version 1.16.1, use this example file to test: https://gist.github.com/wzup/fc3254562236c1ec3f69 |
For scss it only works in the first level, for nested rules it doesn't leave a line between each rule, like the example in the OP |
I think the issue is with js-beautify itself. There is an open issue for it which the js-beautify devs are hoping to implement into a future release: |
VS Code:
.jsbeautifyrc
.editorconfig
Action performed
Format a scss file (on save, format document and format selection).
Expected results
Expected formatted code to have empty lines between rules.
Actual results
Empty lines are removed.
The text was updated successfully, but these errors were encountered: