Complete the sequence 1 2 3 up to 156 in Notepad++?

In Notepad++ you can press Alt+C for the column / multi-selection editor and use the number to insert function from initial number increasing by 1, you'll just need to select all of your lines that you want to number.

You'll need to have blank lines already. I had to select the lines from the bottom up to the top before running the column editor, but I'm not sure if that's required.

essentially sourced from StackOverflow


Answer provided by Raystafarian is essentially correct.

Please open a new document. Record a macro with only 'Carriage return'. Now play the macro 155 times. So you have 156 lines. Now follow the procedure suggested by Raystafarian.


This isn't the solution you asked for, but solves your problem easily: Just open excel or google sheets and enter 1 and 2 in the first two cells. Then click and drag the bottom-right corner down to auto-increment the list.

enter image description here

Then just cut and paste it into your text file.

enter image description here