Home Download Buy Blog Forum Support

Expand Selection In Scope?

Expand Selection In Scope?

Postby cursors_foiled_again on Thu Jul 14, 2011 9:13 pm


I was thinking of trying to write a command to expand the selection to everything matching the current selection that is in the same scope. This would be helpful for refactoring a variable name, for instance.

Before I begin, I wanted to check to see if this was already in ST2 and i'm just missing it.
Also if anyone has any general suggestions, let me know. If successful I'll post on here.
Posts: 5
Joined: Thu Jul 14, 2011 9:05 pm

Re: Expand Selection In Scope?

Postby adzenith on Thu Jul 14, 2011 11:03 pm

I don't think this exists, but you can also do a replace all in selection (select a block using cmd+shift+space, then open the find dialog and hit replace all) or you can go to the top of the block and hit cmd+d until you're satisfied.
Posts: 1403
Joined: Mon Oct 19, 2009 9:12 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 20 guests