I highly suggest turning on automatic trimming of trailing whitespace in your editor of choice (Visual Studio Code, Atom, NotePad++, VIM, etc). It helps prevent diffs from having a ton of line changes that are simply changes to trailing spaces.
Here's an image of the setting in Visual Studio Code:
This PR trims all trailing whitespace.
I highly suggest turning on automatic trimming of trailing whitespace in your editor of choice (Visual Studio Code, Atom, NotePad++, VIM, etc). It helps prevent diffs from having a ton of line changes that are simply changes to trailing spaces.
Here's an image of the setting in Visual Studio Code: