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.

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Did you find this useful? Leave a ❤️ or a comment below!

Join the community