Don't remove whitespaces after pressing Enter #10075
Replies: 6 comments 14 replies
-
Fixed with (not quite but I'm trying to come up with a better way): "S-ret" = "open_above"
"ret" = "open_below" |
Beta Was this translation helpful? Give feedback.
-
No, it doesn't work actually and I don't know how to fix it with shortcuts |
Beta Was this translation helpful? Give feedback.
-
It's intended behavior and matches other editor like vim. I don't think adding an option for this is worth doing. |
Beta Was this translation helpful? Give feedback.
-
@pascalkuthe how to achieve this then? Vim is configurable enough for achieving this |
Beta Was this translation helpful? Give feedback.
-
Also see #5159 which discusses this. I don't understand when keeping trailing whitespace is a good thing, so I'd prefer we don't make this configurable. |
Beta Was this translation helpful? Give feedback.
-
@the-mikedavis formatters already remove all trailing spaces but when helix removes it after pressing Enter, it interferes with text editing. You can't just enter + move_line_up, you need to insert like 3 tabs or something or to exit to normal mode to execute a command |
Beta Was this translation helpful? Give feedback.
-
It's convenient to navigate indented code, it's better to implement an option that allows you to keep trailing spaces. Removing trailing spaces interferes with indentation and navigation
Beta Was this translation helpful? Give feedback.
All reactions