Answer: To associate file extensions with a language in Zed, use the `file_types` setting in your `settings.json`, mapping a language name to a list of extensions or glob patterns. Status: Overdue (check was due 2026-11-20T13:39:52Z and has not succeeded) Entry: tool/zed/settings/file-associations Revision: 1 Digest: sha256:ccdfdb19a34bf767 (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:52Z Next check: 2026-11-20T13:39:52Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Setting name | file_types | [1] | 2026-11-19 Example mapping | "C++": ["c"] | [1] | 2026-11-19 Glob patterns | glob patterns | [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:52Z Quote: "use the [`file_types`](./reference/all-settings.md#file-types) setting in your `settings.json`" (Supports: Setting name) Quote: ""C++": ["c"]," (Supports: Example mapping) Quote: "You can use glob patterns for more flexible matching" (Supports: Glob patterns) 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:52Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:39:52Z Last attempt: 2026-11-19T13:39:52Z Notes and limitations: Extracted automatically from a single official source (section "File Associations"). Human-readable page: https://zed.dev/docs/configuring-languages.html Related: https://latestn.com/tool/zed/settings/filter-editor-diagnostics-severity How do I filter which diagnostics Zed shows in the editor by severity? https://latestn.com/tool/zed/settings/force-clangd-c-only How do I force Zed to treat all files in a C-only project as C with clangd? https://latestn.com/tool/zed/settings/force-x11-mode How do I make Zed run in X11 mode instead of Wayland? 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-tanka-import-paths How do I enable tanka import path resolution for Jsonnet in Zed? https://latestn.com/tool/zed/settings/enable-toml-support How do I enable TOML language support in Zed? 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/file-associations/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/file-associations POST: https://latestn.com/dispute/tool/zed/settings/file-associations with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/settings/file-associations?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I associate file extensions with a language in Zed? Revision 1, last verified 2026-11-19T13:39:52Z. https://latestn.com/tool/zed/settings/file-associations (accessed 2026-11-21T10:00:24Z). @misc{LatestN_tool_zed_settings_file_associations_r1, title = {How do I associate file extensions with a language in Zed?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/settings/file-associations}}, note = {Revision 1; digest sha256:ccdfdb19a34bf767; last verified 2026-11-19T13:39:52Z; accessed 2026-11-21T10:00:24Z} } 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/file-associations