This section of the archives stores flipcode's complete Developer Toolbox collection, featuring a variety of mini-articles and source code contributions from our readers.


  Custom Colors In MSVC
  Submitted by

Many coders heavily customize the default color scheme in MSVC to reflect their own personal style. Unfortunately, MSVC's configuration dialog is limited to the standard 16 windows colors. Here is how to change the colors to be any RGB value you like:

Go to Tools-Options-Format and find the color you want to change. Set it to anything other than AUTOMATIC.

Go to HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Source Window

A series of nicely-named binary values are there for each attribute that can be configured. Each setting starts with 2 RGBA values for the foreground and background colors. The rest is the font settings (bold, etc.) and some bit that indicates to use automatic colors. If the automatic colors bit is on then your changes will not take effect. Once you do this, you can still safely use Tools-Options-Format without it destroying your settings.

Happy coloring!

The zip file viewer built into the Developer Toolbox made use of the zlib library, as well as the zlibdll source additions.


Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.