Sublime Text 2 tutorial part 4: Multiple Cursors and Incremental Search

Gerinho · 70K views · 2012 · 6:55

Open on YouTube

Testing, debugging & developer toolsSoftware practice, open source & careerstutorial

Why Stack Overflow recommends it

Stack Overflow users link it when answering how to edit many lines at once or reproduce Sublime's multi-cursor editing in other tools like Visual Studio.

Recommended by 3 people across 2 different months, 2013 to 2017.

What it is

A short screencast in Jeffrey Way's free Sublime Text 2 workflow course (Tuts+), re-uploaded by Gerinho. It demonstrates multiple cursors, multi-selection with Ctrl+D, and incremental search in the editor.

What people said

Recommends shamp00 · 2013-09 · Stack Overflow · on “how to automate a lot of repetitive actions in Visual Studio 2012?”

For your type of work, you can get an awful lot done with careful use of SublimeText's multiple cursors. See this video demonstration [this video] . In Visual Studio I have 'Open with SublimeText' defined as an External Tool with a keyboard shortcut for Alt+O. Then whenever I need the multiple cursor functionality I can switch to it quickly. The same functionality is also available as a free extension [LINK] for visual studio. See Scott Hanselman's writeup [LINK]

Recommends Daniel Figueroa · 2013-09 · Stack Overflow · on “Sublime Text 2: Multiple line selection, skip one line”

No it's not possible to skip a line while selecting unless you do as @Oskar Hane suggests. However in this partcular case (when the lines you want to select have unique traits in common (if you can say it like that)) you could just select a part of the topline, enough of it to be only common with the other line say # ---- and press ctrl+d which will enable multi select, then you'll have multiple cursors with which you can select the whole line. This video [this video] should help you understand the concept if you don't do it allready.

Recommends fodma1 · 2016-03 · Stack Overflow · on “how can I change line to paragraph in sublime?”

It's more like a superuser question, but with the multiline editing it can be easily done in Sublime: [this video] Just select all the paragraphs, press cmd+shift+l, to place a cursor at the end of every line, then you can put </p> there. The next step is to jump to the beginning of the lines by pressing cmd+'<-' (left arrow key) and put <p> there.

Cites dotNET · 2017-03 · Stack Overflow · on “Incremental search/replace in Visual Studio”

So the other day a Sublime lover showed me how to do incremental search/replace in sublime [this video] and asked if I could do that in Visual Studio. After googling I found that Visual Studio does support Incremental Search through Ctrl + I , but there was no obvious way of doing "Replace All". Googling further didn't give any promising results. I did however find that this would require support for multiple carets, which I'm not sure is available or not in VS. Does anyone know how to do that? Some possible alternates could be the Rename facility and Find/Replace etc, but none of them is as swift as Incremental Search. I have tried a few add-ins too, but none of them does what the linked video s