How to: Change the Font Face, Size, and Colors Used in the Editor

You can change the default font face, adjust the font size, and change the foreground and background colors for various text Display items in the Code Editor. When changing font settings keep in mind the following information:

  • The settings for Font and Size are global for all text elements in all Visual Studio editors.

  • The names of fixed width fonts are listed in bold.

  • Item foreground, Item background, and Bold options can be set for each type of text element. For example, if you change colors and select Bold for Comment and Bookmarks, other types of text elements will be unaffected.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To change the default font face, size, and colors

  1. Select Options from the Tools menu, and in the Environment folder, select Fonts and Colors.

    The Fonts and Colors, Environment, Options Dialog Box opens.

  2. In Show settings for, select Text Editor.

  3. Modify the Font and Size options to change the font face and size for all text elements in all editors.

  4. Select the appropriate item in Display items, and then modify the Item foreground and Item background options.

    Tip

    Click Use Defaults to reset the default settings.

  5. Click OK.

See Also

Concepts

Customizing the Editor

Other Resources

Setting Editor Options

Editing Text, Code, and Markup