Search code examples
c#jetbrains-iderider

JetBrains Rider makes a lot of whitespace changes when saving C# file


I am using JetBrains Rider 2019.1.1 with C#, and every time I alter a source file, git detects a lot of whitespace changes in ALL file that are very annoying.

The files are from a repository, and I do not know in which IDE were written (VS 2017 probably), but I do not want to reformat the file's whitespaces.

How can I tell Rider to stop messing with the whitespaces ?

I do not want to ignore whitespace changes as GitHub diff can do, I want Rider to stop making such changes.


Solution

  • It ended being a problem with git and the configuration of whitespaces :facepalm: