Home > Article > Development Tools > How to delete blank lines in notepad++
Use Notepad to open a file with blank lines, and press CRTL A to select the entire content of the current file (recommended learning: notepad )
Find [Edit]-->[Row Operation]-->[Remove blank lines (including Blank characters)】, you can delete all blank lines
##If you want to keep a blank line, you can select [Edit]-->[Row Operation]-->[Remove Blank Line]
The above is There is also a more flexible way to delete blank rows by performing row operations. That is, use search and replace to delete blank lines. Press the CRTL H key combination to open the Find and Replace window, check the following two options
and enter in the search target :\r\n\r\n, enter: \r\n in Replace with, \r\n represents a blank line. Performing this replacement replaces all multiple blank lines with a single blank line.
Enter:^\s in the search target and do not enter any characters in the replace with. Performing this replacement will remove all blank lines.
The above is the detailed content of How to delete blank lines in notepad++. For more information, please follow other related articles on the PHP Chinese website!