How do you select a range of lines (from a start line number to an end line number) 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:
Ctrl+G
which opens a box to enter the line number to go to.Click at the first column of the first line. Then scroll down to the last line that you want to select, HOLD Shift key and click on the last line.
Since version 1.46 it seems like you can set an anchor and select from anchor to cursor: https://code.visualstudio.com/updates/v1_46#_accessibility
To cancel selection hit esc
.
Try this out... Type #region at the start of the line which you want to select and #endregion at the end of the line and collapse it using the side ruler available in VS code .Now since it will in a single region you can select the region easily
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With