Or just configure your code formatter to do this and forget about ever getting it wrong again.
The problem being referred to here is that a change on one line causes changes to unrelated lines. It makes it harder to pinpoint which line was changed intentionally in a diff and which ones were just caused by tab issues.
If you format before every commit, then the only changes you get are the changes you made.