Microsoft SQL Server Studio - Dark Mode

Kıvanç ÖZDEMİR 130 Reputation points
2023-12-19T13:11:52.4966667+00:00

Is there any official method to use Microsoft SQL Server Management Studio Studio with Dark Mode?

Azure SQL Database
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,190 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,984 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,654 questions
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 25,956 Reputation points
    2023-12-19T13:55:20.2066667+00:00
    7 people found this answer helpful.

6 additional answers

Sort by: Most helpful
  1. Andrew Freese 0 Reputation points
    2024-04-03T21:40:33.4+00:00

    You might want to give SQL Shades a try - I've been using it a short time and its better than the old hacky solutions. https://www.sqlshades.com/

    0 comments No comments

  2. Yan, Lei 0 Reputation points
    2024-04-17T15:21:26.15+00:00

    Run this Python code as Administator.
    SSMS 19 added, modify the path to your SSMS installation folder if need.

    import pathlib
    import re
    def modify_file(source_path, target_path, pattern, replacement):
        """
        Reads the content of source_path, replaces occurrences of pattern with replacement,
        and writes the results back to target_path.
        """
        # Ensure the source file exists before trying to read it
        if source_path.exists():
            content = source_path.read_text()
            modified_content = re.sub(pattern, replacement, content)
            target_path.write_text(modified_content)
            print(f"Updated file: {target_path}")
        else:
            print(f"File not found: {source_path}")
    # Define paths and pattern for replacement
    paths_versions = {
        16: ("C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\ssms.pkgundef",
             "C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\ssms.pkgundef"),
        17: ("C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\ssms.pkgundef",
             "C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\ssms.pkgundef"),
        18: ("C:\\Program Files (x86)\\Microsoft SQL Server Management Studio 18\\Common7\\IDE\\ssms.pkgundef",
             "C:\\Program Files (x86)\\Microsoft SQL Server Management Studio 18\\Common7\\IDE\\ssms.pkgundef"),
        19: ("C:\\Program Files (x86)\\Microsoft SQL Server Management Studio 19\\Common7\\IDE\\ssms.pkgundef",
             "C:\\Program Files (x86)\\Microsoft SQL Server Management Studio 19\\Common7\\IDE\\ssms.pkgundef")
    }
    pattern = r'''\[\`\$RootKey\`\$\\Themes\\{1ded0138-47ce-435e-84ef-9ec1f439b749}\]'''
    replacement = r'''//[`$RootKey`$\\Themes\{1ded0138-47ce-435e-84ef-9ec1f439b749}]'''
    # Process each version
    for version, (source, target) in paths_versions.items():
        source_path = pathlib.Path(source)
        target_path = pathlib.Path(target)
        modify_file(source_path, target_path, pattern, replacement)
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.