String colorization
In VS, you can have your strings colorized. This feature has been around for a long time. However, the default string color is the same as the default text color, so you may not notice at first.
In C#, there are two string colors: “String” and “Verbatim String”. In Whidbey, I'm pushing to have both string colors be the same as each other, but different than other colors. I also like to set the colors for “Number“ and “Operator“. In the past, I've found this colorization very helpful in reading my code.
As I work at my OO skills, the significance of literal strings in my code has decreased, and all my code has become simpler, so maybe this is changing for me.
Comments
- Anonymous
May 02, 2004
I agree. When setting up VS I always change the string color so that strings are easier to see in the code, even if it's to just identify strings that should be in a resource somewhere. - Anonymous
May 02, 2004
agreed. the default string color should be different. me personally, i use red. the different color has the added benefit of making it quick to spot when you forgot a closing quote as code that shouldn't be red, now is. - Anonymous
May 06, 2004
Is there a good (simple) way to export VS color settings from one machine to another? It takes a lot of tweaking to get them just right :) - Anonymous
May 06, 2004
Travis: In Whidbey, you can use the Profiles feature to save & share settings.
You can try saving out HKCUSWMSVS??FontsAndColor - Anonymous
May 07, 2004
The comment has been removed - Anonymous
May 11, 2004
Thank you! That worked perfectly.