VS Code keyboard shortcut
Press Ctrl + Shift + K to delete the line.
Practice this shortcut All VS Code shortcuts