notepad++ Delete all blank lines

Source: Internet
Author: User

Questions raised:

With notepad++ writing code, there are a lot of blank lines, sometimes need to delete these blank lines, but the operation is more troublesome, especially sometimes we edit the document is particularly large, one line to delete is not possible, so you need to be able to quickly delete all the blank lines in the document

Problem Solving :

Shortcut key: crtl+f, click "Replace"

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/6A/wKiom1V7njmgFeTyAAIYnZVups0368.jpg "title=" QQ picture 20150613110504.png "Width=" "height=" 333 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:500PX;HEIGHT:333PX; " alt= "Wkiom1v7njmgfetyaaiynzvups0368.jpg"/>

Replace target written as:^\s*\n, "Replace with" which line is a blank line, the following lookup mode is changed to regular expression, and then click Replace All, success.

This article is from the "Tosagta" blog, please be sure to keep this source http://tsoagta.blog.51cto.com/9747076/1661521

notepad++ Delete all blank lines

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.