Discussion Locked

Delete indented lines in Notepad

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a document in notepad with a series of indented lines as follows:

Outdented
Indented
Indented
I need to develop a procedure to quickly and automatically delete a series of indented lines
Thank you.

5 replies

by hashbaz

If the indents are tabs, do a search on and replace it with "". If the indents are with spaces, the search and replace can get it close, but not exact, by multiple replacing 2 spaces with 1 space. You'll still need to remove the one space atthe beginning of each line. (Some editors will let you replace and then with just which will also eliminate that first space on the line.)

This discussion is closed to new replies.