Home >Development Tools >phpstorm >Teach you how to quickly delete empty lines in batches in Phpstorm

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

藏色散人
藏色散人forward
2021-11-26 15:52:003224browse

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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete