Diff

Diff support is available natively in Gram.

Configuration

Gram will not attempt to format diff files and has remove_trailing_whitespace_on_save set to false.

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

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