I strongly recommend you don't turn on the feature "files.trimTrailingWhitespace": true
in VSCode.
If the project you are working on is unnormalized, the feature will trigger many irrelevant modifications in your git commit records, which is a good place for bugs to hide.