Notepad++ 列块模式编辑(Column mode or vertical/block editing)

In Notepad++, can I copy multiple rows into the leading or trailing space of another file?

Active 7 years ago

Viewed 24k times

Say I have the following 2 files open in Notepad++

enter image description here

Is it possible to copy the text on the right and paste it into the left, so that I will end up with

A copy

B this

C text

D over (etc..)

or

copy A

this B

text C

over D

notepad++ copy-paste

shareimprove this question

edited Mar 23 '13 at 9:52

img

slhck

184k5252 gold badges497497 silver badges512512 bronze badges

asked Mar 3 '13 at 17:47

img

Snailer

28311 gold badge33 silver badges66 bronze badges

add a comment

2 Answers

ActiveOldestVotes

19

Yes. Do a block copy/paste.

Hold down Alt while selecting the text to copy and copy it. Then hold down Alt while selecting where you want to copy to in the destination file. Don't select any characters--just drag the cursor down so it flashes on multiple rows. Then paste the text.

Vertical/block editing can also be accomplished by holding Alt+Shift along with the arrow keys on your keyboard.

Note: This method can also be used to input text on multiple rows simultaneously. You may also access this via the edit-menu as shown below. Column Mode will simply tell you the keyboard shortcut to use. Column Editor will insert one or more characters (or numbering) starting at the cursor and in all subsequent lines, until you reach the end of the file.

enter image description here

shareimprove this answer

edited Mar 4 '13 at 18:04

answered Mar 3 '13 at 17:58

img

Ben Richards

11.7k1010 gold badges4646 silver badges7070 bronze badges

来源: https://superuser.com/questions/560240/in-notepad-can-i-copy-multiple-rows-into-the-leading-or-trailing-space-of-ano





posted @ 2020-03-26 17:04  柠檬茶多放糖  阅读(402)  评论(0编辑  收藏  举报