How can I change color of lines in Visual Studio 2010 based on some custom pattern? For example, I want to change color of all lines that start with logger. . Is it possible at all?
I have ReSharper 5 installed too.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I wrote up a quick little extension to do this; since you’ll very likely want to modify it, you should grab the source. The important part is the code in
LayoutChanged:To build/run this, you’ll need to:
Fill = Brushes.AliceBlueline.ifexpression.[ContentType]attribute. The “Content Types” section of this msdn page lists out some of the common ones.