Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Basic text editing shortcuts:

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

Delete or Backspace to delete.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading