Search code examples
c#visual-studioresharpereditorconfig

How to determine why certain settings from .editorconfig are not applied?


I am tweaking naming guidelines in my project and am running into trouble with certain rules. I've installed Resharper to see which settings are applied and which are not. For example:

editorconfig settings not applied

As you can see charset for some reason is not applied. Same for dotnet_naming_style settings - I would love to know why that is. I obviously don't have any other overriding .editorconfig files so especially for charset it's confusing why that setting is not active.

What's the best way of debugging and resolving this problem?


Solution

  • These settings are not yet supported by ReSharper, that's why they are striked through. They still could be used by Visual Studio and other tools, just not by ReSharper. I guess we should highlight unsupported, but syntactically correct properties in other way. I filed an issue for that (https://youtrack.jetbrains.com/issue/RSRP-470700). We plan to support naming settings in later releases, but we don't have plans to support charset setting, that should be better done by Visual Studio.