How to Remove Duplicate Lines in Notepad++

Let’s see how to remove duplicate lines from Notepad++ in Windows 10.

Steps

Open Notepad++ file.

Hit Edit at the top.

Hover your mouse over Line Operations above Comment/Uncomment.

You now have two options:

  • Remove Duplicate Lines – will eliminate duplicate lines from the document.
  • Remove Consecutive Duplicate Lines – this will remove duplicate lines that are consecutive.

Click on the one you prefer.

That’s all.

Notes:

To duplicate the line, follow these steps:

Go to the line you want to duplicate.

Press Ctrl + D. That’s all.

Alternate Method

Go to the line you want to duplicate.

Hit Edit at the top.

Hover your mouse over Line Operations which you can find above Comment/Uncomment.

Click on the Duplicate Current Line option.

That’s it.

Default image
Thirumalraj
How To Raj was founded and run by Thirumalraj, an MCA graduate. Since August 2015, he has been blogging on his other blog, Technology Hint. Learn more about How To Raj here.