当前位置: 动力学知识库 > 问答 > 编程问答 >

Visual studio text editor: how change the color of Log statements?

问题描述:

I'm using VS2010 and I have a lot of log (log4net) statements in my code.

if(Logger.IsDebugEnabled)

{

Logger.DebugFormat("varX = {0}", varX);

}

I don't want to add #regions because the number of such logging block is very large.

Is there any way to change the color of these lines to 'Gray' to distinguish them from normal code?

Best regards,

Zach

分享给朋友:
您可能感兴趣的文章:
随机阅读: