Delete Line
What is Delete Line?
Delete Line: Remove the entire current line in one keystroke. Most editors can delete the whole current line with one shortcut. In VS Code it is Ctrl+Shift+K or Cmd+Shift+K. In JetBrains IDEs it is Ctrl+Y or Cmd+Backspace. In Vim it is dd. It saves the small but frequent dance of selecting a line with the mouse or keyboard before deleting it. It also works with several selected lines or multiple cursors.
Frequently asked questions about Delete Line
What should you keep in mind with Delete Line?
Shortcuts like this matter more than they seem. Each one saves only a second, but you use them hundreds of times a day, and keeping your hands on the keyboard helps you stay focused on the code. If you only learn a few editor shortcuts, make it this one, moving lines, duplicating lines and the command palette.
At a glance
| Category | Keyboard shortcuts |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |