D
D
Dima2019-08-05 11:28:37
Sublime Text
Dima, 2019-08-05 11:28:37

How to duplicate 100 unique lines in Sublime Text?

There is such data:

string 1
string 2
string 3
...
string 1000

I want to get these:
string 1
string 1
string 2
string 2
string 3
string 3
...
string 1000
string 1000

Who knows how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idShura, 2019-08-05
@qpz

1. Ctrl+F
2. Alt+R (If regular expression search is not active)
3. In the search bar, enter the regular expression .*
4. Press Alt+Enter
5. Ctrl+C
6. Press the right arrow to get rid of the selection and leave only cursors at the end of lines
7. Enter
8. Ctrl+V
ezgif-4-2e9fb233809a.gif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question