57

I am looking to select lines from line number 1000 to line number 1997 and after delete them.I am using notepad++ and I am looking to do so,so after I can delete them.Any help would be appreciated.

bthe0
  • 1,354
  • 2
  • 13
  • 25
  • possible duplicate of [Select range of lines in Notepad++](http://stackoverflow.com/questions/8490968/select-range-of-lines-in-notepad) – phuclv Jul 30 '15 at 06:19

4 Answers4

112

Easiest way for big files:

  1. Ctrl + G, go to line 1000.

    • Menu > Edit > Begin/End select.

  2. Ctrl + G, go to line 1997.

    • Menu > Edit > Begin/End select.

You now have your range selected with few clicks and no scroll.

António Almeida
  • 9,620
  • 8
  • 59
  • 66
  • There is no Begin/End select in the Edit Menu, probably an older verions – Dexters Sep 12 '14 at 15:46
  • 2
    @Dexters, I've just checked with the latest release (v6.6.9) and the option is there: http://oi62.tinypic.com/2rfczg4.jpg – António Almeida Sep 13 '14 at 10:38
  • 1
    you can right click at the line you want to start, select 'begin/end select'. Scroll to the line you want to end, right click, select 'begin/end select'. All lines in between will be highlighted. – gebuh Jul 16 '16 at 17:14
15

Try Menu => Search => Goto and enter the first line number. Next use Menu => Edit => Begin/End select. Then Goto the second line number and repeat the Begin/End select. Finally delete the selected area.

AdrianHHH
  • 13,492
  • 16
  • 50
  • 87
13

Place cursor on line 1000, scroll to line 1997 using the mouse / scroll bar.

Press and hold the shift key and then click on line 1997. This will select all the lines in between and you can then delete them.

DaV
  • 755
  • 2
  • 8
  • 17
1

Select the range and Shift +Alt and Down go down till you need. you can extend in between using by pressing right/left arrow

ChanGan
  • 4,254
  • 11
  • 74
  • 135