You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this how-to article, we'll customize the Visual Studio color theme. Then, we'll customize the colors for two different types of text in the code editor.
19
+
This article shows you how to change the [color theme](#set-the-color-theme-for-the-ide) in the Visual Studio IDE, and how to change the [font colors](#change-text-colors-in-the-editor) in the editor.
21
20
22
-
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads) page to install it for free.
21
+
> [!TIP]
22
+
> If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads) page to install it for free.
23
23
24
24
## Set the color theme for the IDE
25
25
26
-
The default color theme for Visual Studio's user interface is **Dark**. Here's how to change it to a different color theme.
26
+
The default color theme for the Visual Studio user interface is **Dark**. Here's how to change it to a different color theme.
27
27
28
28
1. On the menu bar, select **Tools** > **Options**.
29
29
30
30
1. In the options list, select **Environment** > **General**.
31
31
32
-
1. In the **Color theme** list, choose between the default **Dark** theme, the **Blue** theme, the **Blue (Extra Contrast)** theme, and the **Light** theme. Or, choose the **Use system setting** option to select the theme that Windows uses.
32
+
1. In the **Color theme** list, choose between the **Blue** theme, the **Blue (Extra Contrast)** theme, the default **Dark** theme, and the **Light** theme. Or, choose the **Use system setting** option to select the theme that Windows uses.
33
33
34
34
:::image type="content" source="media/vs-2022/fonts-colors-theme.png" alt-text="Screenshot of the Options dialog box where you can change the color theme.":::
35
35
@@ -43,21 +43,21 @@ The default color theme for Visual Studio's user interface is **Dark**. Here's h
43
43
44
44
::: moniker range="vs-2019"
45
45
46
-
In this how-to article, we'll customize the Visual Studio color theme from the blue theme to the dark theme. Then, we'll customize the colors for two different types of text in the code editor.
46
+
This article shows you how to customize the Visual Studio color theme from the blue theme to the dark theme. Then, it shows you how to customize the colors for two different types of text in the code editor.
47
47
48
48
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads) page to install it for free.
49
49
50
50
## Set the color theme for the IDE
51
51
52
-
The default color theme for Visual Studio's user interface is **Blue**. Let's change it to **Dark**.
52
+
The default color theme for Visual Studio's user interface is **Blue**. Here's how to change it to **Dark**.
53
53
54
54
1. On the menu bar, which is the row of menus such as **File** and **Edit**, choose **Tools** > **Options**.
55
55
56
56
1. On the **Environment** > **General** options page, change the **Color theme** selection to **Dark**, and then choose **OK**.
57
57
58
58
The color theme for the entire Visual Studio development environment (IDE) changes to **Dark**.
59
59
60
-

60
+

61
61
62
62
> [!TIP]
63
63
> You can create your own themes by installing the **Visual Studio Color Theme Designer** from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=ms-madsk.ColorThemeDesigner).
@@ -66,7 +66,9 @@ The default color theme for Visual Studio's user interface is **Blue**. Let's ch
66
66
67
67
## Change text colors in the editor
68
68
69
-
Now we'll customize some text colors for the editor. First, let's create a new XML file to see the default colors.
69
+
Here's how to customize some text colors for the editor.
70
+
71
+
First, create a new XML file to see the default colors:
70
72
71
73
1. From the menu bar, choose **File** > **New** > **File**.
72
74
@@ -100,40 +102,43 @@ Now we'll customize some text colors for the editor. First, let's create a new X
100
102
</Catalog>
101
103
```
102
104
103
-
Notice that the line numbers are a turquoise-blue color, and the XML attributes (such as `id="bk101"`) are a light blue color. We're going to change the text color for these items.
105
+
Notice that the line numbers are a turquoise-blue color, and the XML attributes (such as `id="bk101"`) are a light blue color.
104
106
105
-

107
+

108
+
109
+
Next, change the text color for these items:
106
110
107
111
1. To open the **Options** dialog box, choose **Tools** > **Options** from the menu bar.
108
112
109
113
1. Under **Environment**, choose the **Fonts and Colors** category.
110
114
111
-
Notice that the text under **Show settings for** says **Text Editor**—this is what we want. Expand the drop-down list just to see the extensive list of places where you can customize fonts and text color.
115
+
Notice that the text under **Show settings for** says **Text Editor**. You can expand the drop-down list to see the extensive list of places where you can customize the fonts and text color.
112
116
113
117
1. To change the color of the line numbers text, in the **Display items** list, choose **Line Number**. In the **Item foreground** box, choose **Olive**.
114
118
115
119
:::image type="content" source="media/vs-2022/personalize-line-number-color.png" alt-text="Screenshot of the Fonts and Colors category in the Options dialog box.":::
116
120
117
-
Some languages have their own specific fonts and colors settings. If you are a C++ developer and you want to change the color used for functions, for example, you can look for **C++ Functions** in the **Display items** list.
121
+
Some languages have their own specific fonts and colors settings. If you're a C++ developer and you want to change the color used for functions, for example, you can look for **C++ Functions** in the **Display items** list.
122
+
123
+
1. Before you exit out of the dialog box, you can also change the color of XML attributes. In the **Display items** list, scroll down to **XML Attribute** and select it. In the **Item foreground** box, choose **Lime**. Choose **OK** to save the selections and close the dialog box.
118
124
119
-
1. Before we exit out of the dialog box, let's also change the color of XML attributes. In the **Display items** list, scroll down to **XML Attribute** and select it. In the **Item foreground** box, choose **Lime**. Choose **OK** to save our selections and close the dialog box.
125
+
The line numbers are now an olive color, and the XML attributes are a bright, lime green. If you open another file type, such as a C++ or C# code file, the line numbers also appear in the olive color.
120
126
121
-
The line numbers are now an olive color, and the XML attributes are a bright, lime green. If you open another file type, such as a C++ or C# code file, you'll see that the line numbers also appear in the olive color.
127
+

122
128
123
-

129
+
## Next steps
124
130
125
-
We explored just a couple ways of customizing the colors in Visual Studio. We hope that you'll explore the other customization options in the [**Options**](../ide/reference/fonts-and-colors-environment-options-dialog-box.md) dialog box, to truly make Visual Studio your own.
131
+
Explore the other customization options in the [**Fonts and Colors** > **Options**](../ide/reference/fonts-and-colors-environment-options-dialog-box.md) dialog box to truly make Visual Studio your own.
126
132
127
133
::: moniker range="vs-2022"
128
134
129
135
> [!TIP]
130
-
> Looking for info on how to download VS Code color themes and then import them into Visual Studio? Check out the [Introducing a Collection of New Visual Studio Themes](https://devblogs.microsoft.com/visualstudio/custom-themes/) blog post for all the details.
136
+
> Looking for info on how to download [VS Code](https://code.visualstudio.com/docs) color themes and then import them into Visual Studio? Check out the [Introducing a Collection of New Visual Studio Themes](https://devblogs.microsoft.com/visualstudio/custom-themes/) blog post for all the details.
131
137
132
138
::: moniker-end
133
139
134
140
## See also
135
141
136
-
-[How to: Change fonts, colors, and themes in Visual Studio](../ide/how-to-change-fonts-and-colors-in-visual-studio.md)
137
-
-[How to: Change text case in the editor](../ide/how-to-change-text-case-in-the-editor.md)
138
-
-[How to: Customize window layouts and personalize tabs](customizing-window-layouts-in-visual-studio.md)
139
-
-[Visual Studio IDE overview](../get-started/visual-studio-ide.md)
142
+
-[Change fonts, colors, and themes in Visual Studio](../ide/how-to-change-fonts-and-colors-in-visual-studio.md)
143
+
-[Change text case in the editor](../ide/how-to-change-text-case-in-the-editor.md)
144
+
-[Customize window layouts and personalize tabs](customizing-window-layouts-in-visual-studio.md)
0 commit comments