Notepad++ Add Number in Each Line

I have the following data in a text file

p=1
p=1
p=1
p=1

etc. I open that file in Notepad++.

How would I change it to

p=1
p=2
p=3
p=4

etc.

1

1 Answer

You can use the "Column Editor" mode. First, select the column you want by holding Alt and dragging down the column. Then go to "Edit->Column Editor", you will get a box that looks like this:

Choose the "Number to Insert" button, then choose the starting value and the increment. It will replace the column with the values you want.

5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest