Answer: Install `sql-formatter` globally with npm, ensure it is available in your path, then configure formatting in Settings under Languages > SQL or add the external formatter configuration to your settings file (project `.zed/settings.json` or user `~/.config/zed/settings.json`). Status: Overdue (check was due 2026-11-20T13:43:25Z and has not succeeded) Entry: tool/zed/settings/enable-sql-auto-formatting Revision: 1 Digest: sha256:8dcf8778d9348416 (changes whenever the content changes) Timeline: Created: 2026-11-13T04:04:57Z Last changed: 2026-11-13T04:04:57Z Last verified: 2026-11-19T13:43:25Z Next check: 2026-11-20T13:43:25Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of formatter tool | sql-formatter | [1] | 2026-11-19 install command | npm install -g sql-formatter | [1] | 2026-11-19 formatter command | sql-formatter | [1] | 2026-11-19 formatter arguments | --language | [1] | 2026-11-19 settings location | .zed/settings.json | [1] | 2026-11-19 user settings location | ~/.config/zed/settings.json | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/languages/sql.md". https://zed.dev/docs/languages/sql.md Role: primary. Accessed: 2026-11-19T13:43:25Z Quote: "Zed supports auto-formatting SQL using external tools like [`sql-formatter`]" (Supports: formatter tool) Quote: "npm install -g sql-formatter" (Supports: install command) Quote: ""command": "sql-formatter"," (Supports: formatter command) Quote: ""arguments": ["--language", "mysql"]" (Supports: formatter arguments) Quote: "You can add this to Zed project settings (`.zed/settings.json`)" (Supports: settings location) Quote: "or via your Zed user settings (`~/.config/zed/settings.json`)." (Supports: user settings location) Snapshot SHA-256: 374b8be596fbad2d499ac3cadf3da038dcd7945deb35902c759a62f22e86c74f (captured 2026-11-13T04:04:58Z) 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:04:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:43:25Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:43:25Z Last attempt: 2026-11-19T13:43:25Z Notes and limitations: Extracted automatically from a single official source (section "Formatting"). Human-readable page: https://zed.dev/docs/languages/sql.html Related: https://latestn.com/tool/zed/settings/enable-tailwind-intellisense-in-css How do I enable Tailwind CSS IntelliSense in CSS files in Zed? https://latestn.com/tool/zed/settings/enable-tailwind-language-server-gleam How do I enable the Tailwind CSS language server for Gleam files in Zed? https://latestn.com/tool/zed/settings/enable-tailwind-mode-css-files How do I enable Tailwind CSS mode in CSS files in Zed? https://latestn.com/tool/zed/settings/enable-prefill-required-fields How do I enable prefillRequiredFields for Terraform in Zed? https://latestn.com/tool/zed/settings/enable-semantic-tokens How do I enable semantic tokens in Zed? https://latestn.com/tool/zed/settings/enable-shell-script-auto-formatting How do I enable auto-formatting for Shell Scripts in Zed? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:04:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/settings/enable-sql-auto-formatting/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/enable-sql-auto-formatting POST: https://latestn.com/dispute/tool/zed/settings/enable-sql-auto-formatting with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/settings/enable-sql-auto-formatting?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable auto-formatting for SQL files in Zed? Revision 1, last verified 2026-11-19T13:43:25Z. https://latestn.com/tool/zed/settings/enable-sql-auto-formatting (accessed 2026-11-21T09:52:59Z). @misc{LatestN_tool_zed_settings_enable_sql_auto_formatting_r1, title = {How do I enable auto-formatting for SQL files in Zed?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/settings/enable-sql-auto-formatting}}, note = {Revision 1; digest sha256:8dcf8778d9348416; last verified 2026-11-19T13:43:25Z; accessed 2026-11-21T09:52:59Z} } 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/enable-sql-auto-formatting