scss: Do not remove space after `==` and `!=`
Author: aeschliCreated Nov 29, 2023Updated Jun 30, 2026
Labelstype: buglanguage: csslanguage: templating
In VS Code we use js-beautifier for CSS also for SCSS. I know that's a stretch, but it seems to work quite well.
For the following examples, unfortunately, the formatter removes the space after the == and != operators. It would be nice if these could be preserved
@for $i from 1 through $positions {
&.pos#{$i} {
left: $i * if($i !=$positions, 10%, 15%);
}
}
@if $positions ==10 {
&.pos11 {
left: 100%;
}
}Source: beautifier/js-beautify