editor: Add an option to disable the formatter#48991
Merged
Veykril merged 3 commits intozed-industries:mainfrom Mar 17, 2026
Merged
editor: Add an option to disable the formatter#48991Veykril merged 3 commits intozed-industries:mainfrom
Veykril merged 3 commits intozed-industries:mainfrom
Conversation
|
This would be worth mentioning in release notes. |
Contributor
Author
|
It looks like the CI hasn't kicked off yet, so I'm going to quickly add the docs and release notes now. Hope this doesn't disrupt the review process! |
Member
|
yea looks like CI got stuck, will merge after your changes then |
Contributor
Author
|
Should be better now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue #48600, following #48904
Setting
"formatter": nulldoes not actually disable the formatter, as it is functionally equivalent to leaving the setting undefined. In this case, Zed falls back to the default behavior—either "auto" or a specific language server, depending on the language.This PR adds a "none" option to the formatter setting, allowing users to explicitly disable formatting while keeping
code_actions_on_formatenabled separately.I still have some doubts about the necessity of this setting itself, but if it is a desired addition, I will update the documentation accordingly. If not, please feel free to close this PR.
Release Notes:
"formatter": "none"in settings to explicitly disable the formatter.