適用於:SQL Server
Azure SQL Database
Azure SQL 受控實例
Azure Synapse Analytics
Analytics 平台系統 (PDW)
[選項] 對話框可讓您為 MICROSOFT SQL Server Management Studio 中的各種使用者介面元素建立自定義字型和色彩配置。 在 [工具] 功能表上,單擊 [選項], 展開 [環境] 資料夾,然後選取 [[字型和色彩]。
Color scheme changes do not take effect during the session in which you make them. 您可以開啟 SQL Server Management Studio 的另一個實例,並產生預期要套用變更的條件,以評估色彩變更。
UI 元素清單
顯示 的設定
列出您可以變更字型和色彩配置的所有使用者介面元素。 從此清單中選取一項目之後,您可以在 顯示項目中自訂所選項目的色彩設置。
Term | 定義 |
---|---|
文字編輯器 | 變更文字編輯器的字型樣式、大小和色彩顯示設定,會影響預設文字編輯器中的文字外觀。 在 SQL Server Management Studio 外部文字編輯器中開啟的檔將不會受到這些設定的影響。 |
印表機 | [印表機] 字型樣式、大小和色彩顯示設定的變更會影響列印檔中文字的外觀。 注意:您可以為列印選取與文本編輯器中用於顯示的不同預設字型。 This can be useful when printing code that contains both single-byte and double-byte characters. |
[All Text Tool Windows ] | 變更此專案的字型樣式、大小和色彩顯示設定會影響 SQL Server Management Studio 中具有輸出窗格的工具視窗中文字的外觀。 例如,輸出視窗、TextResults 視窗等等。 注意:對 [所有文本工具窗口] 項目的文字進行的變更,不會在您進行變更的會話期間生效。 您可以開啟另一個 SQL Server Management Studio 實例來評估這類變更。 |
尋找結果視窗 | 變更此專案的字型樣式、大小和色彩顯示設定會影響 FindResults 視窗中文字的外觀。 |
輸出視窗 | 變更此專案的字型樣式、大小和色彩顯示設定會影響 [輸出] 視窗中文字的外觀。 |
方格結果 | 變更此專案的字型樣式、大小和色彩顯示設定,會影響 [查詢] 視窗 方格結果 區域中文字的外觀。 |
執行計劃 | 變更此專案的字型樣式、大小和色彩顯示設定,會影響 Microsoft SQL Server 和 SQL Server Compact 查詢的執行計劃中的文字外觀。 |
Text Results | 變更此專案的字型樣式、大小和色彩顯示設定,會影響 [查詢] 視窗 [文字結果] 區域中的文字外觀。 |
商業智慧設計師 | 變更此專案的字型樣式、大小和色彩顯示設定會影響 BusinessIntelligenceDesignerswindow 中的文字外觀。 |
Use Defaults
The Use Defaults button resets the value for the default font and color values of the list item that you selected from the Show settings for list.
字型 (粗體類型表示固定寬度字型)
列出您系統上安裝的所有字型。 When this drop-down list is first opened, the current font for the element you chose from the Show settings for list is selected. 固定字型──在編輯器中較容易對齊的字型──會以粗體顯示。
Size
列出所選字型的可用點大小。 Changing the size of the font affects all Display items entries for a Show settings for selection.
Display items
列出您可以修改前景和背景顏色的項目。
Note
The default display item is Text. As such, properties assigned to Text will be overridden by properties assigned to other display items. 例如,如果您將藍色指派給 Text,並將綠色指派給識別符號,那麼所有識別符號都會以綠色顯示。 在此範例中,識別符屬性會覆蓋文本屬性。
某些顯示項目包括:
指標邊界:程式代碼編輯器左側的邊界,其中顯示斷點和書籤圖示。
可折疊的文本:一段可在 CodeEditor 中切換顯示和隱藏的文字或程式碼(僅限於 XML)。
Item foreground
Lists the available colors you can choose for the foreground of the item selected in Display items. 由於某些項目相關,因此應該維護一致的顯示配置;例如,變更文字的前景色彩也會變更 String 等元素的前景色彩。
Custom
Displays the Color dialog box, where you set a custom color for the item selected in the Display items list.
Note
您定義自訂色彩的能力可能會受限於電腦顯示器的色彩設定。 例如,如果您的計算機設定為顯示 256 種色彩,而且您從 [色彩] 對話框中選取自定義色彩,SQL Server Management Studio 會選擇預設 [基本色彩] 中最接近的可用值,並在 [Color] 對話框中顯示黑色。
Item background
提供一個調色盤,您可以使用該調色盤為在 顯示項目中選擇的項目選擇背景色。 由於某些項目相關,因此應該維護一致的顯示配置;例如,變更文字的背景色彩也會變更 SQL String 等專案的背景色彩。
Custom
Displays the Color dialog box, where you set a custom color for the item selected in the Display items list.
Bold
選取此複選框,以粗體字型顯示選取的 displayitems 文字。 在編輯器中更容易識別粗體文字。
範例
Displays a sample of the font style, size, and color scheme for the selected values in Show settings for and Display items. 您可以使用此文字框,在實驗不同的格式設定選項時預覽結果。