I'd love to see the same. agree it should be an option. (could just expose the regex)
I use a snippet that inserts "space+{+space+cursor+space}". I mapped it to ctrl+shift+{ and it's pretty natural to use but I still miss some and would be happy if the formatter caught them.
On the same subject...
I'd also love to see an option to "tab stop" a set of single line rules (if there are multiple without extra blank lines between).
Code: Select all
.myclass{color: red; }
.myclass div{ color: blue; }
.myclass a{ color: green; }
.myclass li{ color: black; }
would become
Code: Select all
.myclass { color: red; }
.myclass div { color: blue; }
.myclass a { color: green; }
.myclass li { color: black; }
where the formatter picks the first possible tab stop for the lines