I updated my "Visual Studio Community Edition 2022" to version 17.12.0. Now all code of C# private and protected methods are ugly. Please, see image.
How I can disable it? I want equal appearence for private and public methods in C#.
Here is my settings for fading at TextEditor/C#/Advanced:
I tried to find a setting that would change the color of the private methods, but I couldn’t. I also tried many other themes, but the result was the same. By the way, many good color themes have now started to look much worse. In some of them half of the code is completely grayed out.
2
Answers
Thanks Hans Passant for comment. Solution available at this link: https://developercommunity.visualstudio.com/t/unused-private-member-IDE0051-fading-e/10781612
I have created a small extension to disable this fading: https://visualstudioextensions.vlasovstudio.com/2024/11/22/customizing-unreachable-code-fading-in-visual-studio-with-visual-commander/