Enhanced Syntax Coloring

Make your code easy to read and debug by viewing it in a more meaningful set of colors.

color.gif

Beyond coloring provided by the IDE, you specify colors for classes, variables, preprocessor macros and methods. Read your own code, and code written by others, in much less time.

colorSettings.gif

Apply coloring beyond the source window to make code easy to read everywhere.

colorApply.gif

For example, color completion listboxes to make them easy to decipher.

colorListbox.gif

Enhances Syntax Coloring is available in most languages, including C/C++, C# and VB.

colorCsharp.gif

Color Palette

Choose colors using a variety of methods.

colorPalette.gif

Dark Backgrounds

The default colors assume you have a light background in your source windows. You should change the default colors if you have a dark background.

If there is little contrast between the background and a color you choose for an item, the item is drawn in black or white depending on the background. Make sure you select colors with reasonable contrast to your background.

colorDarkBackground.gif

If you darken only the background color of text using Tools|Options|Environment|Fonts and Colors, apply enhanced syntax coloring only to source windows. There typically is not enough contrast in a set of colors so they stand out in both dark and light backgrounds.

colorApplySourceWindows.gif

If you darken the background color of text, you must darken also the background color and lighten the foreground color of Identifier. Your settings for Identifier should be the same as those for Text.

If you darken the background color of all windows and dropdowns using Display Properties|Appearance|Color Scheme, you can apply enhanced syntax colors to all objects.

Coloring by Usage

Color is determined primarily by how a symbol is used, including what characters precede and follow the symbol. Context is not necessarily a factor in determining color.

Coloring is efficient, particularly during scrolling, but unusual sequences of symbols and characters, and commonly used symbol names of differing types, might cause a symbol to be drawn in the wrong color. For example, if MyVar is a method in one place and int in another, MyVar() is colored like a method regardless of the instance to which it refers.

colorMyVar.gif

Preprocessor macros in C/C++ are assumed to have global context and are colored as such even if a particular source file does not include the macro.

Constructors are colored as methods.