notepad++ ways to delete blank lines

Source: Internet
Author: User
Notepad++ is a programming tool that I particularly like. It is easy to use after installation.
Notepad++ provides a lot of convenient plug-ins to achieve more expansion, of course, itself is relatively powerful and useful.
If you encounter a large number of blank lines in the middle of the text, then using notepad++ can be easily done in the following ways:
Method One (plug-in processing):
Download the installation plugin textfx, download and restart, and then find Textfx, Textfx Edit, Delete blank lines in the menu bar.
Method two (regular processing):
Select Replace, set the lookup mode to regular expressions, enter ^\s+ in the Find box, leave the Replace box blank, and click Replace All to make it all (select All).

Method Three, delete empty lines (not including blank lines with a space class symbol)
1. \ r \ n Escape character substitution
Press Ctrl+h, jump out of the search Replace box, define the lookup mode as an extension (\n,\r ... )
Find target: \r\n\r\n
To be replaced by: \ r \ n

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.