Home > Development Tools > notepad > body text

How to delete spaces in front of each line in notepad++

藏色散人
Release: 2019-11-04 09:49:40
Original
10585 people have browsed it

How to delete spaces in front of each line in notepad++

notepad How to delete the spaces in front of each line?

1. When encountering formatted code, each line will have carriage returns and spaces. How can I put all the code on one line and remove the newlines and spaces?

Recommendation: "notepad usage tutorial"

How to delete spaces in front of each line in notepad++

2. Open notepad, and then click [View]->[Show rows] Number]->[Display end of line character], as shown in the figure

How to delete spaces in front of each line in notepad++

3. After step 2, display the end of line character, as shown in the figure

How to delete spaces in front of each line in notepad++

4. Press the shortcut key ctrl F to open the replacement window, click the [Replace] tab, and then enter the search content as shown in the picture as \r\n, leave [Replace with] blank , check [Regular Expression] at the bottom, and then click [Replace All]

How to delete spaces in front of each line in notepad++

5. After step 4, the display is as shown in the figure. Although it is on one line, part of The spaces are not removed

How to delete spaces in front of each line in notepad++

6. Return to the [Replace] window, select [Replace] in the Replace tab, and enter the content as shown in the picture,\ Replace s with empty, click [Replace All] the same as step 4

How to delete spaces in front of each line in notepad++

7. After step 6, the displayed effect is as shown in the figure

How to delete spaces in front of each line in notepad++

The above is the detailed content of How to delete spaces in front of each line 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