If you want to delete all the lines above the current cursor position or current line, follow the below steps,
- Be on the line you want to delete all lines above,
- Press Shift + Page Up to select all lines above,
- Now press Delete.
✌️ Make sure your cursor is at the start of the line just below the line from where you want to delete all the above lines.
✔️ You can follow the same steps if you want to delete all the lines below a given line.
Demo:
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!