Sublime Forum

Ignore line endings on diff

#1

It would be great if the displayed diff could ignore lines where the only changes are white space at eol. This often arises when different editors are used for the same file.

1 Like

#2

You can toggle ignore whitespace with either of the below. However, if you’re looking for only line endings, that doesn’t currently exist and can be filed as an enhancement request.

  1. right click any of the text buffers & choose Hide Whitespace Changes
  2. open the command palette & run Ignore Whitespace in Diffs: Toggle
2 Likes

#3

but its not working for me

0 Likes

#4

While resolving merge conflicts, line endings are not ignored or white spaces for that matter.

0 Likes

#5

For me I get a diff on whitespace on all the files that were opened and saved but when I stage all, only the ones that have an actual (non-whitespace) modification are staged, all others disappear… This points towards SM having different diff rules than Git itself…

0 Likes