Can we please disable format on save by default? #29395
Replies: 6 comments 1 reply
-
I just ran into this yesterday and it was quite frustrating. You might file a bug report since discussions don't seem to get much attention. |
Beta Was this translation helpful? Give feedback.
-
Try this settings.json
|
Beta Was this translation helpful? Give feedback.
-
Format on save being "on" by default is in my opinion the worst part of Zed — it is far too invasive default for a text editor. I tested it on a TypeScript file, and without me noticing, it changed all the single-quotes to double-quotes, replaced commas with semicolons in interfaces, added whitespace changes here and there. Most of the file has been changed And it's not like I can simply revert all this now, because these modifications are mixed with my own changes. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
and "ensure_final_newline_on_save" "remove_trailing_whitespace_on_save" #24743 God knows what “features” I'll have to turn off before some file gets unexpectedly changed in next update. |
Beta Was this translation helpful? Give feedback.
-
I have already set format_on_save to off, but it was useless. So I go back to vscode. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
One of my first experiences with Zed was trying to revert all the edits I accidentaly commited because I didn't know the editor made these changes on save without any warning (and mostly out of viewport). It added semicolons on a ton of places and I had to manually go through it to revert each one separately. This was pretty frustrating.
Generally, I really don't like when editors do this, I have my own formatting choices and I don't want the editor to do something with it unless I tell it to. I suspect I'm not alone in this, I'd be glad if editing actions were opt-in, especially if they are opinionated, like formatting.
Beta Was this translation helpful? Give feedback.
All reactions