Removing empty lines in Notepad++

nomoreflash picture nomoreflash · Oct 5, 2010 · Viewed 554k times · Source

How can I replace empty lines in Notepad++? I tried a find and replace with the empty lines in the find, and nothing in the replace, but it did not work; it probably needs regex.

Answer

Halfwarr picture Halfwarr · Jan 6, 2014

There is now a built-in way to do this as of version 6.5.2

Edit -> Line Operations -> Remove Empty Lines or Remove Empty Lines (Containing Blank characters)

Screenshot of removing empty lines