How do you select a range of lines in Visual Studio Code?

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:

  1. Go the line where you want to start deleting (17158 in my case).
  2. Using keyboard, press Ctrl+G which opens a box to enter the line number to go to.
  3. Enter the line number in the box (1644546 in my case). VS Code will take you to the line you wanted to go to.
  4. Hold the shift key and click on the line. Hopefully, this should select all the lines that you wanted to delete.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)