22 lines · 850 B · Markdown
RawDownload

title: Diff description: "Configure Diff language support in Zed, including language servers, formatting, and debugging."

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"]
  },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t