Delete entire line on backspace if it contains only whitespace characters #28009
martinstark
started this conversation in
Feature Ideas / Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having a hard time getting used to this not being the case when moving over from JetBrains editors (e.g. WebStorm).
If I hit "Enter" once to create a new line break in Zed, it will correctly indent the line with the expected number of whitespace characters, but if I press "Backspace" once, it will only delete one of those whitespace characters, instead of reverting the entire, empty, line.
To me, this feels unintuitive. I have not been able to find a specific setting corresponding to enabling this behaviour.
I feel that it should be the default behaviour for Enter to create a new line, which adds all expected whitespace characters, and Backspace to remove a newline, which removes all expected whitespace characters. Preferably, it should delete the entire line and move the cursor back to the preceding line, not just delete whitespace characters to the beginning of the line.
ctrl-backspace
deletes all whitespace characters preceding the cursor, but the cursor then remains on the same line, keeping the linebreak character, so it is not a good alternative.Beta Was this translation helpful? Give feedback.
All reactions