using Notepad++ how can i make a macro type situation in which a number increments?

前端 未结 6 1220
走了就别回头了
走了就别回头了 2021-01-07 19:48

for example i have about 500 lines. in the beginning of each line i want to add a number. so in line 1 i would want \"1)\" and then line 2 i would want \"2)\"

i know

6条回答
  •  醉话见心
    2021-01-07 20:01

    I have a suggestion but isn't fully automated.. You can open a new file Press the macro recording button:

    1. insert ayting in the first line and press enter
    2. Stop macro recording
    3. Press "Do it many times" (I don't know how is eng. translation) and specify to repeat it for 499 times.

    As answered in question https://superuser.com/questions/331098/flip-or-reverse-line-order-in-notepad do:

    1. Edit > Select All
    2. TextFX > TextFX Tools > Insert Line Numbers
    3. If TextFX > TextFX Tools > +Sort ascending is checked, uncheck it
    4. TextFX > TextFX Tools > Sort lines case sensitive (at column)
    5. TextFX > TextFX Tools > Delete Line Numbers or First Word

    I hope it helps, I didn't try it but I can't see how it couldn't work.. :-)

提交回复
热议问题