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

Windows
Ctrl+Shift+K

Deletes the current line.

Learn More

How to delete line in Visual Studio Code

  1. Open Visual Studio Code and go to where you want to delete line.
  2. 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