Selecting range of lines in Notepad ++

notepadtext editing

How do I select specific range of lines in Notepad++ quickly? I have a text file that has over 1M of lines and I need to delete some fragments from it, but selecting lines manually just takes too much time. For example: I need to select lines from 2000 to 12000, how to make it quick?

Best Answer

I got a better answer. You could record a macro ( deleting for example 10 lines ) . Then run it several times .

1) Go to Macro > Start recording

2) hold Shift and tap Down to mark for example 10 lines . And delete them.

3) Go to Macro > Stop Recording

Now your macro is recorded, you can save it for using in the future .

4) Go to Macro > Save Current Recording Macro... . And save it with a name .

5) Move cursor to line that you want to delete lines after that.Then go to Macro > Run A Macro Multiple Times... . And select your macro and run it N times that you want.

Related Question