Unpleasant fix for me was to generate .editorconfig
files into all projects I use. My version of VS is 17.12.2
First I checked my settings if they were not rewritten:
Then I clicked on the Code Style tab and from there I generated .editorconfig
file into my project folder for each project I have:
This is ugly solution and I never had to put it inside project. It was my local settings I don't understand why this file should travel with the project. (for git adding it to .gitignore can be solution).