How to: Change fonts and colors for the editor in Visual Studio

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 you change font settings, keep the following information in mind:

  • 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.


To learn how to customize the fonts and colors for the IDE and not just for the code editor, see the How to: Change fonts and colors in Visual Studio page.

Change the default font face, size, and colors

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

  2. In Show settings for, select Text Editor.

    Screenshot of the Options dialog box to change fonts and colors in the 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.


    Click Use Defaults to reset to the default settings.

  5. Click OK.

Next steps

To learn more about the font and color changes you can make to the IDE by using the Options dialog box, see the Fonts and Colors, Environment, Options Dialog Box page.

See also