如何编辑多行?

我使用记事本 + + ,现在我想使用同样的酷功能在崇高,但我不知道如何。 我想同时编辑多行,像这样:

但是我不想在每一行都使用 Ctrl + Click。我想点击第一行和点击最后一行的一条垂直线。

我怎么能这么做?

209298 次浏览

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.

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.

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