views:

119

answers:

2

Is there a setting (didn't find one of hand) or good add-in (SO is better for recommendations than Google) for Visual Studio to color lines specially in the editor depending on what keywords or statements it contains?

For example, if a line contains "Throw", it'd be nice to see either that word or the line in red, similarly for "Debug.Assert" (yellow would look nice), and return...ok, maybe my screen would look like a rainbow if I went that far...

A: 

In VS2005, click Tools, Options, Environment, Fonts and Colors. There are settings for many different kinds of text element, allowing code to be colored to help indicate syntax.

The default settings are subtle, but cue a lot more useful information than you are noticing at first glance. It is easy to go overboard...

It doesn't look like its possible to give individual keywords distinct properties, and IMHO that would be a bad idea to do in any case.

Other programmer's editors provide similar capabilities.

RBerteig
+3  A: 

I don't know of any specific add-ins, but this could be achieved with a simple DXCore plugin.

Dustin Campbell
Welcome to the addiction that is SO!
JaredPar