Unhelpful cheekiness aside, use vim or emacs to make quick work of this. Assuming you haven’t installed emacs, vim is likely already on your machine. If you’re windows, go install neovim.
Open vim to that file (vim /path/to/that/file) or nvim if you are using neovim
Press the escape button (gets you into normal mode)
hit gg (gets your cursor to the top of the file)
Now type 281387dd and hit enter (this runs the delete lines dd command however many times you asked it to)
If it looks right, type :wq to save the file and quit vim (:q! to just quit without saving)
An extension like Select Line Range allows to quickly select any range of lines in your document, including from the cursor to any line. Then just delete.
3
Answers
The quick way is to not use vscode 😉
Unhelpful cheekiness aside, use vim or emacs to make quick work of this. Assuming you haven’t installed emacs, vim is likely already on your machine. If you’re windows, go install neovim.
vim /path/to/that/file
) ornvim
if you are using neovimgg
(gets your cursor to the top of the file)281387dd
and hitenter
(this runs the delete linesdd
command however many times you asked it to):wq
to save the file and quit vim (:q!
to just quit without saving)An extension like Select Line Range allows to quickly select any range of lines in your document, including from the cursor to any line. Then just
delete
.Ctrl+Shift+Home