In IntelliJ IDEA there is a setting I quite enjoy: When you delete an empty line, its cursor automatically move to the upper line, like this:
How can I assign this setting in VSCode ?
To add cursors at arbitrary positions, select a position with your mouse and use Alt+Click (Option+Click on macOS). You can add additional cursors to all occurrences of the current selection with Ctrl+Shift+L. Note: You can also change the modifier to Ctrl/Cmd for applying multiple cursors with the editor.
CTRL + J/L : Move cursor to start/end of line.
In order to quickly delete a line in VSCode, you can simply press Ctrl+Shift+K keyboard combination while the cursor is being placed in the desired line. The hotkey can be changed by modifying editor.
You want to install the Hungry Delete extension.
It changes the behavior of the backspace. When you hit backspace in a line that has none other than white space, it erases the whole line and moves the cursor up, which is the same behavior of JetBrains' editors, demonstrated in the question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With