Home Download Buy Blog Forum Support

No Selection -> scope full line

No Selection -> scope full line

Postby n00ge on Fri Jun 04, 2010 6:30 pm

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.
http://twitter.com/n00ge
Sublime Text 3 dev builds | OS X 10.8.2 & Ubuntu 13.04
n00ge
 
Posts: 140
Joined: Mon Oct 05, 2009 1:23 am

Re: No Selection -> scope full line

Postby gpfsmurf on Fri Jun 04, 2010 7:30 pm

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.
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: No Selection -> scope full line

Postby n00ge on Fri Jun 04, 2010 8:02 pm

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.
http://twitter.com/n00ge
Sublime Text 3 dev builds | OS X 10.8.2 & Ubuntu 13.04
n00ge
 
Posts: 140
Joined: Mon Oct 05, 2009 1:23 am

Re: No Selection -> scope full line

Postby edanm on Sat Jun 05, 2010 8:25 am

Yeah, that's a pretty annoying thing (the ctrl+/ not working in CSS or HTML files).
I'd wish it were fixed.
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Google [Bot] and 8 guests