Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate a line of text in notepad++? [closed]

before

man
woman
friend
love

after

man man
woman woman
friend friend
love love

Does anyone know about doing this using a text editor or cmd?

like image 627
Cleisson Almeida Avatar asked Sep 24 '13 01:09

Cleisson Almeida


People also ask

How do you copy an entire line in NotePad?

From the NotePad tab, select the row number of the row you want to cut or copy. To cut the row, click Cut on the speedbar. To copy the row, click Copy on the speedbar. Select the row number of the row where you want to paste the information.

How do you duplicate in NotePad?

Behold ctrl + d! That's right, it's taken me two years to discover that ctrl + d duplicates the line in which the cursor is positioned. Much better; now I can copy a url, ctrl + d to duplicate an existing 301 redirect entry in htaccess and paste the url in.

How do you copy a single line?

Press Ctrl+D or choose Edit | Duplicate Line or Selection from the main menu . Alternatively, you can press Ctrl+Shift+A , start typing the command name in the popup, and then choose it there.


1 Answers

Well, you could use something like this:

Find:

^.*$

And replace by

$0 $0

Make sure you have the following settings:

enter image description here

like image 85
Jerry Avatar answered Nov 08 '22 19:11

Jerry