How do I cut and paste a column of text in Sublime text 3 –
For example:
File A
Alpha
Beta
Gamma
Delta
File B
AAA
BB
CCCCC
I want to end up with file B having
Alpha AAA
Beta BB
Gamma CCCCC
Delta
sublime-text-3
How do I cut and paste a column of text in Sublime text 3 –
For example:
File A
Alpha
Beta
Gamma
Delta
File B
AAA
BB
CCCCC
I want to end up with file B having
Alpha AAA
Beta BB
Gamma CCCCC
Delta
Best Answer
First, select the lines in File B that you want copied. Note the number X of lines (this should be displayed on the bottom of your screen).
Second, select the first X lines of File A so that there is a cursor at the end. To do this:
Selection
menu, and use the shortcut forAdd Next Line
until X lines are selected. On OSX, its controlshiftdown.In this example, there will be 3 cursors at the end of File A that look like this:
Finally, press tab once, then paste your lines. You should have the results you want.
Because of the way this is done, its easier to paste into File A. However, if you really want to paste into file B or some other file, just copy the lines in File A into the target file before you start, and do the same process.