I had to delete lines starting from line number 17158 through 1644546 which was nearly impossible to do if I used scrolling. So I followed 4 simple steps:
- Go the line where you want to start deleting (17158 in my case).
- Using keyboard, press
Ctrl+Gwhich opens a box to enter the line number to go to. - Enter the line number in the box (1644546 in my case). VS Code will take you to the line you wanted to go to.
- Hold the shift key and click on the line. Hopefully, this should select all the lines that you wanted to delete.