You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using VSCode 1.66.0 and the new built-in LESS code formatting feature less.format.enable implemented by the JS Beautify library.
When using a LESS mixin that accepts CSS code rules as a parameter (this is used for media query mixins), the formatting when saved is a little unexpected. The formatting is consistent, but it is unusal.
Thanks for the report. We depend on JS Beautify here, so please file issues there.
Maybe we need to disable the formatter again for LESS if LESS is outside the scope of JS Beautify.
Thanks for the report. We depend on JS Beautify here, so please file issues there.
Maybe we need to disable the formatter again for LESS if LESS is outside the scope of JS Beautify.
Using VSCode 1.66.0 and the new built-in LESS code formatting feature
less.format.enable
implemented by the JS Beautify library.When using a LESS mixin that accepts CSS code rules as a parameter (this is used for media query mixins), the formatting when saved is a little unexpected. The formatting is consistent, but it is unusal.
Example code (expected formatting)
Result after saving
Similar issue reported a while back js-beautify issue 722
I've noticed that if you add the following to your
settings.json
file, the results are slightly better:This gives you formatting like:
Apologies if this isn't the right place to report this, but as it was a new feature of VSCode I figured I'd start here.
The text was updated successfully, but these errors were encountered: