# Deprecate code actions on format setting \(\#39983\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3ba4b841075315071ac67fb4756cbc940792b601

Requested commit: 3ba4b841075315071ac67fb4756cbc940792b601

Commit: 3ba4b841075315071ac67fb4756cbc940792b601

Tree: 784aa54c116b4f78d2bc9bf79fd402820bf51a4b

Author: Ben Kunkle

Committer: GitHub

## Message

````
Deprecate code actions on format setting (#39983)

Closes #ISSUE

Release Notes:

- settings: Deprecated `code_actions_on_format` in favor of specifying
code actions to run on format inline in the `formatter` array.

Previously, you would configure code actions to run on format like this:

```json
{
  "code_actions_on_format": {
    "source.organizeImports": true,
    "source.fixAll.eslint": true
  }
}
```

This has been migrated to the new format:

```json
{
  "formatter": [
    {
      "code_action": "source.organizeImports"
    },
    {
      "code_action": "source.fixAll.eslint"
    }
  ]
}
```

This change will be automatically migrated for you. If you had an
existing `formatter` setting, the code actions are prepended to your
formatter array (matching the existing behavior). This migration applies
to both global settings and language-specific settings
````

## Parents

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

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