DEV Community

Cover image for How to Change Syntax Highlighting Colors in Visual Studio Without Installing a Theme
Pexl Keys
Pexl Keys

Posted on

How to Change Syntax Highlighting Colors in Visual Studio Without Installing a Theme

"This guide is for Visual Studio (2019, 2022, etc.) — not Visual Studio Code."

Visual Studio is powerful and customizable, but many developers don't realize they can tweak its syntax colors without installing external themes. Whether you're trying to make your editor easier on the eyes or simply want to add a bit of personality to your coding environment, here's how to change syntax colors manually — no extensions required.

Why Change Syntax Colors?

Improve readability – Make specific elements like comments or strings stand out.

Reduce eye strain – Use colors that are softer and easier on the eyes.

Personal preference – Align your editor with your style or match it with your system theme.

Step-by-Step Guide

1. Open Visual Studio

Launch your version of Visual Studio (2019, 2022, etc.).

2. Go to Fonts and Colors Settings

Navigate to Tools > Options

In the left panel, expand Environment > click on Fonts and Colors

3. Choose the Right Setting

Under "Show settings for", choose Text Editor

You'll now see a list of Display Items – these are different code elements like:

Plain Text

Keyword

Comment

String

Identifier

Number

4. Customize Colors

Select a display item (e.g. Comment)

On the right, choose a Foreground and Background color

Use the preview box to see the effect

Repeat for other display items you want to change

5. Apply and Save

Click OK to apply your changes. Visual Studio will instantly reflect your new color scheme.

Pro Tips 💡

Use high-contrast but soft tones for long coding sessions.

Match your syntax colors to popular color schemes (e.g. One Dark, Dracula) manually.

Save your settings using Visual Studio’s "Import and Export Settings" feature.

Final Thoughts

No need to download external themes or rely on extensions if you just want a color refresh. Visual Studio gives you enough control to customize your coding experience right out of the box.

Top comments (0)