Table of Contents
Staring at a bright white screen all day? Your eyes deserve better. If you use SQL Server Management Studio (SSMS) for hours, switching to Dark Mode can make a huge difference. It looks cool. It feels better. And it can even help you focus.
In this guide, I’ll show you how to enable Dark Mode in SSMS step by step. We’ll also unlock a hidden setting that many people don’t know about.
TL;DR: SSMS has a partial Dark Mode built in. You can enable it from Tools > Options > Environment > General > Color theme. But the full Dark Mode is hidden and requires editing the ssms.pkgundef file. Close SSMS, edit the file, remove the dark theme exclusion line, save, and restart. Done!
Let’s be honest. White screens can be harsh.
Here’s why many developers switch to Dark Mode:
Now let’s turn it on.
Before we enable anything, check your version.
Dark Mode is available in SSMS 17 and later. The hidden full Dark Mode trick works especially well in SSMS 18 and newer.
If you’re running an old version, update first. It makes everything easier.
Good news. SSMS already includes a Dark theme.
Here’s how to turn it on:
That’s it.
Your interface will change immediately.
But wait.
You may notice something strange. Some windows stay light. For example:
That’s because this is only a partial Dark Mode.
This is the fun part.
SSMS actually includes a more complete Dark theme. But Microsoft hid it. Why? Because it’s technically unsupported.
But it works. And many developers use it daily.
Important: Close SSMS before doing this.
You need to modify a configuration file.
Navigate to this folder (adjust version if needed):
C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE
In SSMS 19, the folder may reference 19 instead of 18.
Once inside the IDE folder, look for:
ssms.pkgundef
Image not found in postmetaNow we unlock the magic.
Inside the file, press Ctrl + F and search for:
// Remove Dark Theme
You should see a block of lines under it.
It will look something like this:
// Remove Dark Theme
[$RootKey$\Themes\{GUID}]
To enable full Dark Mode:
Or comment them out by removing the restriction line.
Then:
Important: You may need administrator permissions to save changes.
Open SSMS again.
Now go back to:
Tools > Options > Environment > General
Select Dark theme again if needed.
This time you should see a much more consistent Dark interface.
Object Explorer should now blend beautifully with the rest of the UI.
Now that everything is dark, let’s make it perfect.
You can adjust syntax colors:
Here you can change:
Pro tip: Soft gray backgrounds reduce strain even more than pure black.
You may have deleted too much from the pkgundef file.
Fix:
Always create a backup before editing system files.
This can happen with certain extensions.
Fix:
Re-check the pkgundef file.
You may have accidentally removed the wrong section.
Short answer: Yes, mostly.
It’s not officially supported. That means Microsoft might not fix small visual bugs.
But it does not:
It only changes how SSMS looks.
Thousands of developers use it without issues.
Changed your mind?
To revert:
If you modified the pkgundef file:
Easy.
You might wonder.
If it works, why hide it?
Here’s why:
Instead of shipping a “half-perfect” feature, they limited it.
But developers love tweaking things. So here we are.
Consistency across apps feels better.
Enabling Dark Mode in SSMS is simple.
The built-in version takes seconds.
The hidden full version takes two minutes.
And the difference is huge.
Your eyes will thank you.
Your workspace will look modern.
And you might even enjoy writing queries a bit more.
So go ahead. Flip the switch. Welcome to the dark side.
You’re ready to watch a video. You click play. And then—boom—YouTube stops you with the…
Venmo is awesome. Until it is not. You tap “Add Money,” ready to split dinner…
FasTrak is one of the most widely used electronic toll collection systems in the United…
Finding great content online can feel like searching for socks in a messy drawer. There…
Planning an event can feel like spinning plates. You need to sell tickets. Track guests.…
In fast-moving organizations, information can easily become scattered across emails, chat threads, and shared drives.…