Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove spaces in the beginning of lines with Notepad++?

I'm working on a project and I need all the lines to be perfectly straight, some lines are fine but many look like this and I need to fix 3,000 of them without having to fix each line individually.

See example below

Flying fish flew by the space station.
    The hand sanitizer was actually clear glue.
I received a heavy fine but it failed to crush my spirit.
 He knew it was going to be a bad day when he saw mountain lions roaming the streets.
  Whenever he saw a red flag warning at the beach he grabbed his surfboard.

I want it to look like

Flying fish flew by the space station.
The hand sanitizer was actually clear glue.
I received a heavy fine but it failed to crush my spirit.
He knew it was going to be a bad day when he saw mountain lions roaming the streets.
Whenever he saw a red flag warning at the beach he grabbed his surfboard.

Google, couldn't find results for this

like image 366
Dubdub Avatar asked Dec 22 '25 09:12

Dubdub


1 Answers

Use Menu => Edit => Blank Operations => Trim Leading Space.

like image 64
AdrianHHH Avatar answered Dec 24 '25 01:12

AdrianHHH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!