Sublime text 3. How to edit multiple lines?

Sublimetext3Sublimetext

Sublimetext3 Problem Overview


I was using Notepad++ and now I want to use the same cool features in Sublime but I don't know how. I want to edit multiple lines at the same time like this:

But I don't want to Ctrl+Click at each line for this. I want to click at first line and click at last line for one vertical line.

How I can do this?

Sublimetext3 Solutions


Solution 1 - Sublimetext3

First, select multiple lines (by dragging mouse, shift+arrow, etc.). Then, press:

CTRL+SHIFT+L

or on MAC: CMD+SHIFT+L (as per comments)

Alternatively you can select lines and go to SELECTION MENU >> SPLIT INTO LINES.

Now you can edit multiple lines, move cursors etc. for all selected lines.

Solution 2 - Sublimetext3

Use CTRL+D at each line and it will find the matching words and select them then you can use multiple cursors.

You can also use find to find all the occurrences and then it would be multiple cursors too.

Solution 3 - Sublimetext3

Thank you for all answers! I found it! It calls "Column selection (for Sublime)" and "Column Mode Editing (for Notepad++)" https://www.sublimetext.com/docs/3/column_selection.html

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLoryView Question on Stackoverflow
Solution 1 - Sublimetext3callmebobView Answer on Stackoverflow
Solution 2 - Sublimetext3AkarView Answer on Stackoverflow
Solution 3 - Sublimetext3LoryView Answer on Stackoverflow