Answer: You configure formatters globally or per-language in your `settings.json` under the `languages` key, setting `formatter` to either an external command or `language_server`, and optionally `format_on_save`. For example, JavaScript can use an external Prettier command while Rust uses `language_server`, both with `format_on_save` set to `on`. Status: Overdue (check was due 2026-11-20T13:39:51Z and has not succeeded) Entry: tool/zed/settings/configure-formatters Revision: 1 Digest: sha256:faa29fd7dafdd74b (changes whenever the content changes) Timeline: Created: 2026-11-13T04:01:25Z Last changed: 2026-11-13T04:01:25Z Last verified: 2026-11-19T13:39:51Z Next check: 2026-11-20T13:39:51Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Configuration location | settings.json | [1] | 2026-11-19 External formatter command (JavaScript) | prettier | [1] | 2026-11-19 External formatter arguments | --stdin-filepath | [1] | 2026-11-19 Rust formatter | language_server | [1] | 2026-11-19 Format on save setting | on | [1] | 2026-11-19 Disable formatting setting | off | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/configuring-languages.md". https://zed.dev/docs/configuring-languages.md Role: primary. Accessed: 2026-11-19T13:39:51Z Quote: "You can configure formatters globally or per-language in your `settings.json`:" (Supports: Configuration location) Quote: ""command": "prettier"," (Supports: External formatter command (JavaScript)) Quote: ""arguments": ["--stdin-filepath", "{buffer_path}"]" (Supports: External formatter arguments) Quote: ""formatter": "language_server"," (Supports: Rust formatter) Quote: ""format_on_save": "on"" (Supports: Format on save setting) Quote: ""format_on_save": "off"" (Supports: Disable formatting setting) Snapshot SHA-256: d04af8198fa8cdf00824448a7b3682bea1617e9773d5f36ebb2cf9a7f829b569 (captured 2026-11-13T04:01:24Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T04:01:25Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:39:51Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:39:51Z Last attempt: 2026-11-19T13:39:51Z Notes and limitations: Extracted automatically from a single official source (section "Configuring Formatters"). Human-readable page: https://zed.dev/docs/configuring-languages.html Related: https://latestn.com/tool/zed/settings/configure-hls-options How do I configure HLS options like the formatting provider in Zed? https://latestn.com/tool/zed/settings/configure-jsonnet-language-server-settings How do I configure the Jsonnet language server settings in Zed? https://latestn.com/tool/zed/settings/configure-light-dark-icon-themes How do I configure different icon themes for light and dark mode in Zed? https://latestn.com/tool/zed/settings/configure-eslint-nodepath How do I configure ESLint's nodePath in Zed? https://latestn.com/tool/zed/settings/configure-eslint-working-directory How do I configure ESLint's workingDirectory in Zed? https://latestn.com/tool/zed/settings/configure-fish-indent-formatter How do I configure Zed to use fish_indent as the external formatter for Fish? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:01:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/settings/configure-formatters/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/zed/settings/configure-formatters POST: https://latestn.com/dispute/tool/zed/settings/configure-formatters with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/settings/configure-formatters?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set up a formatter for a language in Zed? Revision 1, last verified 2026-11-19T13:39:51Z. https://latestn.com/tool/zed/settings/configure-formatters (accessed 2026-11-21T09:55:01Z). @misc{LatestN_tool_zed_settings_configure_formatters_r1, title = {How do I set up a formatter for a language in Zed?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/settings/configure-formatters}}, note = {Revision 1; digest sha256:faa29fd7dafdd74b; last verified 2026-11-19T13:39:51Z; accessed 2026-11-21T09:55:01Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/zed/settings/configure-formatters