sugarss: Indent dependent block comments
I would prefer to comment by indent.
.foo
//.bar
color: red
.baz
color: navy
What will be equal to:
.foo {
/*
.bar {
color: red
}
*/
.baz {
color: navy
}
}
It works in that way in Jade and I very like this way to comment out whole trees.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 16 (9 by maintainers)
Against this… Hinders readability in my opinion. Uncommented code that acts like it is commented? Seems silly and like an anti-feature… I don’t mind dragging my cursor (or merely shift-clicking) a few extra lines so I can press Ctrl+/ in my editor, if that distinctively shows what code is commented and what is not.
👍 Indent block commenting. It’s just nice when you want to comment a whole er… block. I use it often in Jade/Pug as well. Click and dragging to comment/uncomment multiple times while testing is a bit much when you compare it to just comment/uncomment a single parent.
If clicking a “only a few more times” was ever a good reason to not add a feature we wouldn’t have multiple cursors in our editors either. 😁
Although it’s not the end of the world if this doesn’t get added.
+1 It’s not super difficult to
Ctrl+/
out multiple lines, but I really like the way Jade handles this. It’s a minor convenience, but I think it is worth implementing (eventually.)Moot point. Editors with syntax highlighting for SSS will display it as commented out.
@TrySound it’s Sass highlighting.
Here’s Jade highlighting:
I think it is too tricky, when line can be hidden in comment by some symbol in some lines above. Comments should be explicit.
Especially because every text editor have hot key (like
Cmd + /
) to add//
to all selected lines.However, I am open for thoughts and maybe you can convince me, that this feature is very important.