Theme NexT works best with JavaScript enabled

ShunNien's Blog

不積跬步,無以致千里;不積小流,無以成江海。

0%

SSMS 2016 啟用黑色主題

許多開發工具介面都提供了黑色主題介面, SSMS (SQL Server Management Studio) 也提供了主題選擇,但是沒有黑色主題的選項。其實微軟已經在實驗提供這功能了,所以可以按照以下的方法開啟這未開放的功能喔。
SSMS 2016 option

先在以下路徑找尋 ssms.pkgundef 這檔案,然後使用記事本(或是其他文字編輯器)開啟,記得使用管理者權限。

1
C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio

開啟後,搜尋 Remove Dark theme 這個段落,然後使用 // 進行註解,如以下段落:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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]

上述檔案修改存檔後,直接開啟 SSMS ,按照工具->選項->環境,設定色彩佈景主題為深色,這樣即可
SSMS2016 enable dark theme

由於預設的關鍵字顏色跟黑色背景實在看得吃力,所以我調整了一下顏色,然後字型也選擇我習慣的字形,變成以下這樣
sample show

font setting

參考資料

歡迎關注我的其它發布渠道