Files
zed/docs/src/languages/diff.md
Ben Kunkle abe1fd5e16 docs: Validate JSON snippets (settings, keymap, tasks, etc) (#40043)
Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
2025-10-12 00:19:57 -04:00

705 B

Diff

Diff support is available natively in Zed.

Configuration

Zed will not attempt to format diff files and has remove_trailing_whitespace_on_save and ensure-final-newline-on-save set to false.

Zed will automatically recognize files with patch and diff extensions as Diff files. To recognize other extensions, add them to file_types in your Zed settings.json:

  "file_types": {
    "Diff": ["dif"]
  },