如何更改MSSQL Management Studio主题?


Answers:


4
  1. 在VS 2010中安装2010 Color Theme Editor。
  2. C:\Users\xxxxx\AppData\Local\Microsoft\VisualStudio\xx.x\Extensions\..中找到文件,对于我来说,该文件在\shvn3avp.com当前版本的插件中。
  3. 将这些文件复制到新文件夹: C:\Program Files (x86)\Microsoft SQL Server\xxx\Tools\Binn\ManagementStudio\Extensions\VSTheme
  4. extension.vsixmanifest内容替换为:

    <?xml version="1.0" encoding="utf-8"?>
    <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
    <Identifier Id="46b3817c-b0c3-42d1-8cea-d373f781b21e">
      <Name>Visual Studio Color Theme Editor</Name>
      <Author>Microsoft</Author>
      <Version>1.3</Version>
      <Description xml:space="preserve">Allows users to customize the color palette used for menus, toolbars, tabs, title bars, and other environment colors.</Description>
      <Locale>1033</Locale>
      <Icon>ThemeManagerIcon.png</Icon>
      <PreviewImage>ThemeManagerPreview.png</PreviewImage>
      <InstalledByMsi>true</InstalledByMsi>
      <SupportedProducts>
        <IsolatedShell Version="1.0">ssms</IsolatedShell>
        <VisualStudio Version="10.0">
          <Edition>Ultimate</Edition>
          <Edition>Premium</Edition>
          <Edition>Pro</Edition>
          <Edition>IntegratedShell</Edition>
        </VisualStudio>
      </SupportedProducts>
      <SupportedFrameworkRuntimeEdition MinVersion="3.0" MaxVersion="6.0" />
      <SystemComponent>true</SystemComponent>
    </Identifier>
    <References />
    <Content>
      <VsPackage>ThemeManagerPackage.pkgdef</VsPackage>
    </Content>

  5. 导入此设置:http : //studiostyl.es/schemes/vs2012-dark-theme-for-vs2010

  6. 在扩展提供的“主题”菜单上打开的“自定义颜色”对话框上,导入他的主题

结果:

在此处输入图片说明

对于2015和SQL Management Studio 17RC1

而是在VS2015上安装扩展。请按照上述步骤。

我计算机上的文件夹是 C:\Users\xxxxxx\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\owbugenu.gif

xml是:

<!-- language: lang-xml -->
<?xml version="1.0" encoding="utf-8"?>
<Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
  <Identifier Id="B8CED2B3-FF48-4204-88E9-036CA39B83C8">
    <Name>Visual Studio 2015 Color Theme Editor</Name>
    <Author>Microsoft</Author>
    <Version>2.0</Version>
    <Description xml:space="preserve">Allows users to create and edit Visual Studio themes.  Themes can customize colors used for menus, toolbars, tabs, titlebars, the text editor, and other environment colors.</Description>
    <Locale>1033</Locale>
    <InstalledByMsi>true</InstalledByMsi>
    <SupportedProducts>
      <IsolatedShell Version="1.0">ssms</IsolatedShell>
    </SupportedProducts>
    <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
    <SystemComponent>true</SystemComponent>
  </Identifier>
  <References />
  <Content>
    <VsPackage>ColorThemeEditor.pkgdef</VsPackage>
    <VsPackage>Colors\Red.pkgdef</VsPackage>
    <VsPackage>Colors\Purple.pkgdef</VsPackage>
    <VsPackage>Colors\Green.pkgdef</VsPackage>
    <VsPackage>Colors\Tan.pkgdef</VsPackage>
    <VsPackage>Colors\DarkWithLightEditor.pkgdef</VsPackage>
    <VsPackage>Colors\LightWithDarkEditor.pkgdef</VsPackage>
    <VsPackage>Colors\SolarizedDark.pkgdef</VsPackage>
    <VsPackage>Colors\SolarizedLight.pkgdef</VsPackage>
    <MefComponent>ColorThemeEditor.dll</MefComponent>  
    <VsPackage>Colors\ThemeNames.pkgdef</VsPackage>
    <VsPackage>PkgDefAssemblyCodeBase.pkgdef</VsPackage>
  </Content>
</Vsix>

在此处输入图片说明 在此处输入图片说明


2

对于最新的SSMS v17.0(或2016),您可以通过编辑文件“ C:\ Program Files(x86)\ Microsoft SQL Server \ 140 \ Tools \ Binn \ ManagementStudio”来过早启用Dark主题(显然正在进行中吗?)\ ssms.pkgundef”(以管理员身份),并注释掉“删除黑暗主题”注释后的各行(大约241行),完成后应类似于以下内容:

// Remove Dark theme
// [$RootKey$\Themes\{1ded0138-47ce-435e-84ef-9ec1f439b749}]
// [$RootKey$\AD7Metrics\PortSupplier\{4103F338-2255-40C0-ACF5-7380E2BEA13D}]
// [$RootKey$\External Tools\Error Loo&kup]
// [$RootKey$\LightSwitch]
// [$RootKey$\Debugger\LaunchHooks110]
// [$RootKey$\DiagnosticsHub]
// [$RootKey$\FeatureFlags]
// [$RootKey$\VB Editor]
// [$RootKey$\Languages\CodeExpansions\C/C++]
// [$RootKey$\Languages\CodeExpansions\JavaScript]
// [$RootKey$\Text Editor\C/C++]
// [$RootKey$\Text Editor\CSharp]
// [$RootKey$\Text Editor\Disassembly]
// [$RootKey$\Text Editor\ENC]
// [$RootKey$\Text Editor\JavaScript]
// [$RootKey$\Text Editor\Memory]
// [$RootKey$\Text Editor\Register]
// [$RootKey$\Text Editor\ResJSON]
// [$RootKey$\Text Editor\TypeScript]
// [$RootKey$\Text Editor\VBScript]

通过https://community.spiceworks.com/how_to/136505-enable-dark-theme-in-sql-server-management-studio-2016


该解决方案的问题在于,在对象浏览器窗口中的脚本表上单击鼠标右键后,菜单完全不可读。你看完了吗?
Przemyslaw Remin's

@PrzemyslawRemin不,尽管我认为我最近更新了SSMS,并且无论如何它都将其还原,所以我放弃了
drzaus



0

使用SSMS 2016,它现在可以在Visual Studio 2015 Integrated Shell上运行,并且您可以在ColorTheme的Visual Studio 2015扩展中进行相同的操作,而无需更改vsixmanifest文件上的任何内容。

缺点是存在此弹出错误,指示扩展加载失败。只需单击“否”,这意味着SSMS将不再显示该错误。

弹出错误

首先,ColorTheme将无法正确加载,但是在重新启动SSMS之后,它将加载。编辑:我猜想再次重新启动SSMS后,错误将弹出agian。

重新启动SSMS可以节省每一天


这不是完美的。不支持。我将发布2015年版本
regisbsb
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.