Skip to content

↑↓ moveEnter openEsc close

Delete line: the shortcut in 12 apps

12 apps · Mac, Windows and Linux

On Mac it is usually Cmd+Backspace (3 of 11 apps); on Windows it is usually Ctrl+Shift+K (4 of 12 apps); on Linux it is usually Ctrl+Shift+K (4 of 11 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinux
CursorDelete the lineShiftCmdKCtrlShiftKCtrlShiftK
EclipseDelete the lineCmdDCtrlDCtrlD
IntelliJDelete the lineCmdBackspaceCtrlYCtrlY
Visual StudioDelete the line—CtrlShiftL—
NeovimDelete (cut) the line · Normal modeD,DD,DD,D
ObsidianDelete the paragraphCmdDCtrlDCtrlD
PyCharmDelete the lineCmdBackspaceCtrlYCtrlY
Sublime TextDelete the lineCtrlShiftKCtrlShiftKCtrlShiftK
VimDelete (cut) the line · Normal modeD,DD,DD,D
VS CodeDelete lineShiftCmdKCtrlShiftKCtrlShiftK
WebStormDelete the lineCmdBackspaceCtrlYCtrlY
ZedDelete the lineShiftCmdKCtrlShiftKCtrlShiftK

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

How the apps compare

  • Mac: Cmd+Backspace in IntelliJ, PyCharm and WebStorm; Shift+Cmd+K in Cursor and Zed; Cmd+D in Eclipse and Obsidian; D D in Neovim and Vim; Ctrl+Shift+K in Sublime Text; Cmd+Shift+K in VS Code.
  • Windows: Ctrl+Shift+K in Cursor, Sublime Text, VS Code and Zed; Ctrl+Y in IntelliJ, PyCharm and WebStorm; Ctrl+D in Eclipse and Obsidian; D D in Neovim and Vim; Ctrl+Shift+L in Visual Studio.
  • Linux: Ctrl+Shift+K in Cursor, Sublime Text, VS Code and Zed; Ctrl+Y in IntelliJ, PyCharm and WebStorm; Ctrl+D in Eclipse and Obsidian; D D in Neovim and Vim.

Where and when it works

Learn it by pressing it: Cursor shortcuts practice, Eclipse shortcuts practice, IntelliJ shortcuts practice, Visual Studio shortcuts practice, Neovim shortcuts practice, Obsidian shortcuts practice, PyCharm shortcuts practice, Sublime Text shortcuts practice, Vim shortcuts practice, VS Code shortcuts practice, WebStorm shortcuts practice or Zed shortcuts practice.