From the course: Learning Sublime Text 3

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using multiple selections to edit multiple lines simultaneously

Using multiple selections to edit multiple lines simultaneously - Sublime Text Tutorial

From the course: Learning Sublime Text 3

Start my 1-month free trial

Using multiple selections to edit multiple lines simultaneously

- [Narrator] Probably the single most wizz-bang feature of Sublime Text and the one that attracts the most new users to this editor is multiple selection, but multiple selection is also one of the hardest features to use in this editor because it really isn't obvious how the editor's supposed to behave with multiple selections going on at once. So, let me show you how it works. I'm going to scroll down in index.htm, here to this unordered list that contains a bit of a markup issue. There's inconsistent spacing following these closing span tags, and we'd like to fix that up by adding the spaces that are needed on these bottom lines. The easiest way to do multiple selection is to start with a single selection, or in this case, a single cursor, and then hold down the command key, or the control key on Windows, and then click, click, click to add additional cursor's, and I now have six different cursor's in my document at once. You can see it says six selected regions in the status bar…

Contents