Home >Development Tools >notepad >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"
2. Open notepad, and then click [View]->[Show rows] Number]->[Display end of line character], as shown in the figure
3. After step 2, display the end of line character, as shown in the figure
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]
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
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
7. After step 6, the displayed effect is as shown in the figure
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!