Delete line: the shortcut in 12 apps
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.
| App | Mac | Windows | Linux |
|---|---|---|---|
| CursorDelete the line | ShiftCmdK | CtrlShiftK | CtrlShiftK |
| EclipseDelete the line | CmdD | CtrlD | CtrlD |
| IntelliJDelete the line | CmdBackspace | CtrlY | CtrlY |
| Visual StudioDelete the line | — | CtrlShiftL | — |
| NeovimDelete (cut) the line · Normal mode | D,D | D,D | D,D |
| ObsidianDelete the paragraph | CmdD | CtrlD | CtrlD |
| PyCharmDelete the line | CmdBackspace | CtrlY | CtrlY |
| Sublime TextDelete the line | CtrlShiftK | CtrlShiftK | CtrlShiftK |
| VimDelete (cut) the line · Normal mode | D,D | D,D | D,D |
| VS CodeDelete line | ShiftCmdK | CtrlShiftK | CtrlShiftK |
| WebStormDelete the line | CmdBackspace | CtrlY | CtrlY |
| ZedDelete the line | ShiftCmdK | CtrlShiftK | CtrlShiftK |
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.