Shortcut
Visual Studio Code Delete Line Shortcut
The Visual Studio Code shortcut to delete line is Ctrl + Shift + K on Windows. On Mac, press Cmd + Shift + K.
Quick Answer
- Windows
- Ctrl+Shift+K
- Mac
- Cmd+Shift+K
- Web
- Not confirmed yet
Visual Studio CodeShortcut
Delete Line
Deletes the current line.
How to delete line in Visual Studio Code
- Open Visual Studio Code and go to where you want to delete line.
- Press Ctrl + Shift + K on Windows or Cmd + Shift + K on Mac.
Visual Studio Code Delete Line Shortcut for Windows
Press Ctrl + Shift + K.
Visual Studio Code Delete Line Shortcut for Mac
Press Cmd + Shift + K.
Visual Studio Code Delete Line Shortcut for Visual Studio Code Web
We haven't confirmed a Visual Studio Code Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the Visual Studio Code delete line shortcut?
On Windows, press Ctrl + Shift + K. On a Mac, press Cmd + Shift + K.
Is there a Mac shortcut to delete line in Visual Studio Code?
Yes: Cmd + Shift + K.
Does it work in Visual Studio Code for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify