1

I have below original text:

a:1
b:2
c:3
d:4

I want to paste below content into right side of original text area

a:5
b:7
e:10

Result should be:

a:1   a:5
b:2   b:7
c:3   e:10
d:4

it is easy to finish it by ultraedit columnn mode. but how to do in sublime quickly?

2 Answers 2

2

You can use column selection.

Go to the end of first line, and press ctrl+shift+down (or ctrl+alt+down on Windows and Linux) as many times as you need. Then add the number of spaces that you need, and paste your text.

4
  • By your method, i must paste it one by one three times. how to get correct result by copy&paste once Dec 31, 2012 at 14:08
  • If you do what I wrote, you can paste once. You have three line to paste, so you press ctrl+shift+down three times, then you can insert spaces and paste. Dec 31, 2012 at 15:43
  • Got it. already solve it. Before, i copy four line(not three), the 4th line is blank line, so that show unexpected result. By the way, shortcut should be ctrl+alt+down. Dec 31, 2012 at 16:20
  • Sorry, ctrl-shift-down is on MacOS. Windows and Linux use ctrl-alt-down. I updated the text. Dec 31, 2012 at 17:26
1

Sublime Text 2 trick shift+ctrl+L split lines Sublime Text 2 trick shift+ctrl+L split lines

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.