views:

741

answers:

1

I just read secretGeek's fun post on 8 ways to be a better programmer in 6 minutes and really liked the tip on making hard-coded strings look ugly.

When I tried to change the Fonts and Colors setting to do this in my copy of Visual Studio 2008 Professional, I found that the String (C# @ Verbatim) option was not in the Display items list. The option is listed in Visual C# Express 2008.

Does anyone know how to fix this?

Thanks

A: 

OK, after a bit of experimentation, this worked for me.

SysInternals regmon showed that the Font And Colors options for VS2008 Pro are stored in the registry key:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\FontAndColors

Deleting this and restarting Visual Studio caused the key to be rebuilt and restored the String (C# @ Verbatim) option.

The option is missing from the VS2005 Pro key too, so maybe that's why it never appeared in 2008.

Is Magenta over Lime too masochistic??

Jonathan Webb