Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I skip a match when using Ctrl+D for multiple selections in Sublime Text 2?

I have some code like:

testVar = { a: 1 };
testVariable1 = 2;
var c = testVar.a + testVariable2;
var d = testVar;

I want to rename "testVar" variable. When I set multiple cursors with Ctrl+D and edit variable, "testVariable" is also selected and edited.

Is there a way to skip some selections while setting multiple cursors with Ctrl+D?

like image 579
Just_Mad Avatar asked Oct 12 '22 12:10

Just_Mad


1 Answers

Just use Ctrl+K, Ctrl+D.

(for OS X: Cmd+K, Cmd+D)

Needs a bit of practice, but gets the job done!

like image 87
Romain Avatar answered Oct 15 '22 17:10

Romain