+2

"revert whitespace changes" command

benblo 3 years ago 0

Tools like Visual Studio or Resharper often introduce lots of whitespace changes (mixed line endings, tabs), automatically.

Sometimes I want them, to cleanup the files, but sometimes I just want to commit the bare minimum diff to reduce noise.

I'd be nice to have an option to revert all the whitespace-only changes at once, either in the context menu, review pane, or file compare window.

This should follow the same pattern as the "ignore no/leading/all whitespace" radio menu in the file compare window, ie the lines that are highlighted or not would be the ones reverted, so I can preview the revert and know it's safe.