Before switching to Sublime from e-texteditor, Alex added in a very nice feature for scoping the entire line if no selection is made. For example, if you have no selection and hit ctrl+c, the line the cursor is on is copied. Hitting ctrl + / follows suit and would comment out the entire line. This comes in very handy and would be a great addition to Sublime.
No Selection -> scope full line
gpfsmurf
#2
It’s already there. Ctrl+C will copy the current line, and Ctrl+/ will comment out the current line (if it makes sense in the current context)
It even works if you have several empty selections (i.e. 3 cursors on 3 different lines). The whole lines will be copied/commented out.
0 Likes
n00ge
#3
Ah, I’ve been working in CSS and the ctrl+/ didn’t work there. Just threw me off. Seems to work in other languages. It’s probably something in the tmLanguage for CSS. Thanks.
0 Likes
edanm
#4
Yeah, that’s a pretty annoying thing (the ctrl+/ not working in CSS or HTML files).
I’d wish it were fixed.
0 Likes