Teach you how to quickly delete empty lines in batches in Phpstorm

藏色散人
Release: 2021-11-26 15:52:00
forward
3178 people have browsed it

The following tutorial column of phpstorm will introduce to you two plug-ins to improve productivity in PhpStorm. I hope it will be helpful to friends in need!

Phpstorm deletes empty lines in batches:

Many friends will encounter a lot of empty lines in the code, but deleting them one by one must be very annoying. At this time You need to use batch deletion of empty lines.
How to delete blank lines in batches?

My method is to use regular expressions to find all blank lines, and then replace them all with one click.

First check Match Case and Regex

Fill in the regular rules in the first search box: ^n

After matching all blank lines, click [ Replace all].

Teach you how to quickly delete empty lines in batches in Phpstorm

The replacement effect is as follows:

Teach you how to quickly delete empty lines in batches in Phpstorm


##

The above is the detailed content of Teach you how to quickly delete empty lines in batches in Phpstorm. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
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