Make call of System.Diagnostics less visible in the code ( Debug.Assert)
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
It would be great if there were an option to adjust the visibility of System.Diagnostics function calls, such as Debug.Assert(), by making them gray, changing their color, or making them transparent.
example:

If the Debug.Assert line were grayed out, the code would be easier to read and more visually clear.
What do you think?
Contributor guide
Research direction
Start by reviewing the attached example and the requested treatment of System.Diagnostics calls such as Debug.Assert(). Define which editor behavior and user-configurable option would make these lines gray, recolored, or transparent, then identify the relevant Roslyn or Visual Studio editor area. Done means the option is implemented consistently and the example code is visually less prominent without changing its behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- developer-experience, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100