Skip to content

Disable format on save by default (with exception for some languages) #59427

Description

@macraig

Discussed in #29395

Originally posted by panstromek April 25, 2025
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.

Metadata

Metadata

Labels

No labels
No labels

Projects

Status
Planned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions