How can I repeat the line in notepad++?

后端 未结 5 826
北荒
北荒 2021-01-31 19:40

How can I repeat the line in notepad++ ?

For example I have the following input:

a 01
a 02
a 03
a 04

And I would like it to become:

5条回答
  •  日久生厌
    2021-01-31 20:05

    If you are using windows, I recommend writing an auto-hotkey (AHK) script to do this for you. This way, your special text-manipulation script will work in any IDE, not just notepad++. All you would have to do is copy your text example to the clipboard, and then execute an AHK script that reads data from the clipboard using the %clipboard% variable. Then you can load the clipboard with the results of your script and send a CTRL+V signal.

提交回复
热议问题