How do I customize a text editor or color tag tags in my code in Visual Studio?

How to configure, extend a text editor or parts of a color tag of my code?

  • I would like Visual Studio to color parts of my code. Can I use #region and specify a color?

  • Is there a way to make the background between two parentheses a different color? (I want each block to have its own color.)

I looked here for understanding, but they are all implemented on a "what you choose" basis. All I want to do is make the text editor β€œrender” the text differently based on some rules.

+4
source share
2 answers

I have not seen such a function, but there is something very close to what you are looking for in ReSharper. A setting called Select Highlight Separators. It seems to use: Resharper matching delimiter highlighting

I wanted to tell you about this, because 1) you might be interested in resharper and 2) resharper is able to make a selection, so maybe someone can add an add-on or add something like that. Maybe you?:)

0
source

I don't know anything in the exact same way as what you are asking for, but the VS10x code card extension can help: http://www.axtools.com/products-vs2010-extensions.php

This will give you a good overview of the code on the side and make navigation easier.

The download button on the right allows you to download a trial version from the Visual Studio gallery at msdn.microsoft.com. I think you can also find it directly from the extension view in VS2010.

0
source

All Articles