Recently, my LESS file was reformatted in this way:
selector {
some rules
}
selector nested-selector {
some other rules
}
I don't want the nested rule to be indented, where can I turn it off? BTW this might be a Web Essentials thing, too, I have that extension installed. But couldn't find the corresponding settings anywhere.
press F1 or ctrl+shift+p and then enter beautify .. alt+shift+f did nothing, but typing beautify...
Why my CSS file is not working in VS code? The problem may be that your browser is caching the CSS file. If you're debugging with Edge, you can open the F12 tools and click on the Network tab. At the top, you'll find a button to "always refresh from server." Turn this on, and files won't be cached.
Found it. Even for LESS, the rules from CSS editor settings apply and they can be found in Tools > Options > Text Editor > CSS > Advanced. Set "Hierarchical indentation" to Off.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With