How to delete a line using the keyboard shortcut in vscode?

Here is the keyboard shortcut key for deleting or removing an entire line in vscode. This comes in handy when you are in need of deleting an entire line without selecting it.

Deleting a line shortcut in vscode:

Shift + Del

vscode delete line keyboard shortcut

To Undo your deletion: Crtl + Z

Undo the last step (restore the last deleted line)

Crtl + Z

Note: This keyboard shortcut works in Windows 11 (or Windows 10) Visual Studio Code Editor.