How to delete all lines above the current one in Visual Studio Code

I have a massive file full of SQL statements and I would like to delete half of them to reduce the amount of insert statements to make the data more manageable. How can I delete all lines above the line which my cursor is in (or using a range of line numbers)?

>Solution :

Basic text editing shortcuts:

CTRL + SHIFT + HOME to select all from current cursor to start of document.

Delete or Backspace to delete.

Leave a Reply