Jasmine
Jasmine

Reputation: 16175

Sublime Text and Multiple Selection with CMD + D

OS X, Sublime Text 3

I can double click a word and use CMD + D to select the next instance of the word.

However if I want to replace this 30 times I need to CMD + D 30 times.

Is there a way to have it select all that it finds?

OpeningScene* OpeningScene::pinstance = 0;

OpeningScene* OpeningScene::Instance()
{
    if (pinstance == 0)
    {
        pinstance = new OpeningScene;
        pinstance->initInstance();
    }

    return pinstance;
}

OpeningScene::OpeningScene() { }

In the above, replacing OpeningScene I'd need to CMD + D 6 times after double clicking the first instance.

I guess I could do a Find/Replace using the dialog but is there a keyboard way of doing this?

Upvotes: 3

Views: 301

Answers (1)

SomeShinyObject
SomeShinyObject

Reputation: 7791

Yes. Put your cursor over the word and type:

Ctrl+Cmd+G

This should do a quick find all on your current word.

Upvotes: 4

Related Questions