Sublime Forum

Expand Selection In Scope?

#1

Hello,

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.

0 Likes

#2

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.

0 Likes