Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dim/hide logging lines of code in Visual Studio

Is there any way to make visual studio dim or hide/show on demand logging lines of my code?
We use a lot of logging in our project and it's harder to read code like this.

I would like it to be like this, for example:

I would like it to be like this, for example:

like image 534
Anri Avatar asked Mar 04 '13 19:03

Anri


2 Answers

Unobtrusive Code extension worked for me for Visual Studio 2019. It dims the opacity of log lines (and comments, which I disabled - I enjoy reading my comments). He did a quick update for the nuget package, and it works great.

https://marketplace.visualstudio.com/items?itemName=niklaskallander.UnobtrusiveCode

like image 69
goodeye Avatar answered Nov 20 '22 00:11

goodeye


I use this. Hoping one day they will add color customization and line selection regex options as well:

https://marketplace.visualstudio.com/items?itemName=ElmarXCV.GrayLogLines

like image 29
bboyle1234 Avatar answered Nov 20 '22 00:11

bboyle1234