Bernard Borg
Bernard Borg

Reputation: 1372

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)?

Upvotes: 0

Views: 1807

Answers (1)

Samuel Liew
Samuel Liew

Reputation: 79022

Basic text editing shortcuts:

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

Delete or Backspace to delete.

Upvotes: 4

Related Questions