# settings: Make "auto" and "language_server" valid format steps \(\#40113\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/997f6c6a1965ce36c22ff8e5d0e4766531019c90)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 997f6c6a1965ce36c22ff8e5d0e4766531019c90

Requested commit: 997f6c6a1965ce36c22ff8e5d0e4766531019c90

Commit: 997f6c6a1965ce36c22ff8e5d0e4766531019c90

Tree: 21fcdd03e3b23b7967f3d6096fd7204ffb4cef42

Author: Ben Kunkle

Committer: GitHub

## Message

````
settings: Make "auto" and "language_server" valid format steps (#40113)

Follow up for: #39983 and
https://github.com/zed-industries/zed/pull/40040#issuecomment-3393902691

Previously it was possible to have formatting done using prettier or
language server using `"formatter": "auto"` and specify code actions to
apply on format using the `"code_actions_on_format"` setting. However,
post #39983 this is no longer possible due to the removal of the
`"code_actions_on_format"` setting. To rectify this regression, this PR
makes it so that the `"auto"` and `"language_server"` strings that were
previously only allowed as top level values on the `"formatter"` key,
are now allowed as format steps like so:
```json
{
      "formatter": ["auto", "language_server"]
}
```

Therefore to replicate the previous behavior using `"auto"` and
`"code_actions_on_format"` you can use the following configuration:

```json
{
      "formatter": [{"code_action": ...}, "auto"]
}
```

Release Notes:

- N/A *or* Added/Fixed/Improved ...
````

## Parents

- [8dfbafd345a61bfa597a0e11ab09aa0e1b34710b](https://git.cafe/gitcafe/zed/commit/8dfbafd345a61bfa597a0e11ab09aa0e1b34710b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/997f6c6a1965ce36c22ff8e5d0e4766531019c90?format=markdown)
