1

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.

vtscop
  • 31
  • 11
  • I don't know what it is but it doesn't seem to be the default in Rider, you must have changed something. – Roberto Oct 17 '19 at 01:21

2 Answers2

0

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

vtscop
  • 31
  • 11
0

This worked for me: Settings → Editor → General → Strip trailing spaces on Save

Reference: Remove trailing whitespace on save in IntelliJ IDEA 12

macio.Jun
  • 9,647
  • 1
  • 45
  • 41