Home > Development Tools > notepad > How to delete blank lines in notepad++

How to delete blank lines in notepad++

(*-*)浩
Release: 2019-08-21 16:13:38
Original
7173 people have browsed it

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 )

How to delete blank lines in notepad++

Find [Edit]-->[Row Operation]-->[Remove blank lines (including Blank characters)】, you can delete all blank lines

How to delete blank lines in notepad++

How to delete blank lines in notepad++

##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

How to delete blank lines in notepad++

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. How to delete blank lines in notepad++

How to delete blank lines in notepad++

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template