dotnet / dotnet/roslyn

Make call of System.Diagnostics less visible in the code ( Debug.Assert)

Open
#78,641 0 comments 0 reactions 0 assignees View on GitHub
Area-IDE
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:

![Image](https://github.com/user-attachments/assets/413533d6-d68c-4d23-875c-2e552a935598)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.