ctrl+y is deleting the line in vs code code example
Example: visual studio code keyboard shortcut delete line
Ctrl + Shift + K // delete entire line in Visual Studio Code
Ctrl + Shift + K // delete entire line in Visual Studio Code