Column editing in Notepad++ is awesome. How can I copy/paste in column mode?

17

4

Let's say I have a document like this:

A

A

A

B

B

B

How can I put the Bs after the As on each line, like this:

A B

A B

A B

northben

Posted 2013-02-22T15:00:56.587

Reputation: 1 071

Answers

20

It's simple:

  1. Hold the Alt key and select the B lines as columns
  2. Cut or Copy the selection (Ctrl-x or Ctrl-c)
  3. Hold Alt and select the column to the right of the As
  4. Paste (Ctrl-v)

northben

Posted 2013-02-22T15:00:56.587

Reputation: 1 071

Exactly what I need to do too. I did steps 1 to 3 above but when I paste in step 4 only the line is merged properly (with A followed by B). All remaining B text is appended behind the bottommost A line. – John Adams – 2014-08-29T17:36:27.310

It didn't work pressing ctrl+c, but then I hovered over Edit , over paste option and it worked – Theta30 – 2013-05-06T19:11:29.233

@Theta30 What are you talking about? You cannot hover over anything when you hold the Alt pressed! – Val – 2013-10-09T11:48:03.537

@Val you can hover if you keep on your finger over the left click-works better with a mouse – Theta30 – 2013-10-10T02:57:27.833