Switch to Night: How to Enable Dark Mode in Visual Studio

Looking to switch Visual Studio to Dark Mode for a smoother coding experience? You're not alone. Working in a dark environment can be easier on the eyes, especially during those late-night coding sessions. Here's a step-by-step guide on how to change your Visual Studio to Dark Mode.

How to Get MOODY DARK Tone Color  Effect in Photoshop [FREE Preset]
How to Get MOODY DARK Tone Color Effect in Photoshop [FREE Preset]

Before we dive in, ensure you're using Visual Studio 2017 or later, as the Dark Mode theme isn't available in earlier versions. Let's get started!

How I finally made the entire web go dark on desktop and mobile
How I finally made the entire web go dark on desktop and mobile

Themes and Color Schemes in Visual Studio

Visual Studio offers numerous themes and color schemes to suit different preferences. However, the Dark Mode theme isn't predefined and needs to be installed.

an advertisement for dark mode interfaces with the words how to win with design for dark mode interfaces
an advertisement for dark mode interfaces with the words how to win with design for dark mode interfaces

Don't worry, it's a straightforward process. We'll guide you through it in the following steps.

Installing the Dark Mode extension

A guide to implemen­ting dark modes on websites
A guide to implemen­ting dark modes on websites

First, you'll need to install the 'Visual Studio Productivity Power Tools' extension. It includes the Dark Mode theme among other useful features.

Here's how to install it:

  • Open Visual Studio and navigate to the 'Extensions' menu (you can find it in the top menu or by pressing Ctrl + ,).
  • In the search bar, type in 'Productivity Power Tools' and hit enter.
  • Click on 'Visual Studio Productivity Power Tools' in the list, then click 'Download'.
  • After the download is complete, click 'Install'. Visual Studio will restart afterwards.
Instagram Launches Dark Mode — Here’s How to Turn it on
Instagram Launches Dark Mode — Here’s How to Turn it on

Enabling the Dark Mode theme

Now that you have the extension installed, it's time to enable the Dark Mode theme.

Follow these steps:

How to Enable Dark Mode in Windows 10
How to Enable Dark Mode in Windows 10
  • Once Visual Studio reopens, go to 'Tools' in the top menu, then 'Options'.
  • In the left-hand menu, click on 'Environment'.
  • Under 'Theme', click on the drop-down menu and select 'Dark'.
  • Click 'OK' to save changes.

Customizing Dark Mode in Visual Studio

How to Turn on Dark Mode on Google Drive
How to Turn on Dark Mode on Google Drive
an image of a dark mode with the text how to design for dark mode on it
an image of a dark mode with the text how to design for dark mode on it
How to add Dark Mode to Your WordPress website?
How to add Dark Mode to Your WordPress website?
How to Get Dark Mode 2FA Prompts on Your Android
How to Get Dark Mode 2FA Prompts on Your Android
How to Enable Dark Mode in Microsoft Teams
How to Enable Dark Mode in Microsoft Teams
How to Enable Dark Mode in 14 Popular Android & iOS Apps
How to Enable Dark Mode in 14 Popular Android & iOS Apps
Build a Dark Mode Toggle Like a Pro 🌙☀️
Build a Dark Mode Toggle Like a Pro 🌙☀️
Add Dark Mode to Website in 3 Steps with CSS
Add Dark Mode to Website in 3 Steps with CSS
Dark mode websites that feel premium.
Clean contrast, smart typography, perfect mood.
Save this for your next project 🔖. darkmode
webdesign
uidesign
uiinspiration
webinspo
designinspo Dark Mode Ui, Mode Inspo, Web Design, Typography, Social Media, Feelings, Instagram, Design
Dark mode websites that feel premium. Clean contrast, smart typography, perfect mood. Save this for your next project 🔖. darkmode webdesign uidesign uiinspiration webinspo designinspo Dark Mode Ui, Mode Inspo, Web Design, Typography, Social Media, Feelings, Instagram, Design

If you find the default Dark Mode theme too harsh on the eyes, you can customize it further. You can adjust the syntax highlighting colors, font sizes, and more.

Here's how to customize the Dark Mode theme:

Changing syntax highlighting colors

To adjust the colors used for syntax highlighting in Dark Mode, follow these steps:

  • Go back to 'Tools' and then 'Options'.
  • In the left-hand menu, click on 'Fonts and Colors'.
  • Under 'Display items', click on the type of text you want to change (e.g., 'Comment').
  • In the 'Item foreground' field, click the drop-down menu and select the color you want.
  • Repeat steps 3 and 4 for other text types.
  • Click 'OK' to save changes.

Adjusting font sizes

You can also change the font sizes used in Visual Studio. Here's how:

Follow the same steps as customizing syntax highlighting colors, but this time, under 'Display items', select 'Font' instead of 'Item foreground'. Choose the font size you prefer, and click 'OK' to save changes.

And there you have it! You've successfully changed your Visual Studio to Dark Mode. Customize it further to fit your coding style, and enjoy those late-night coding sessions with minimal eye strain. Happy coding!