user13915892
user13915892

Reputation:

Visual Studio Color Scheme

So I updated my Visual Studio to the latest version today, and when I'm writing in C#, all the functions and variables are just white in color. I'm so used to seeing functions in yellow and variables/properties in blue, so I would like to know if it's possible to get the colors back?

enter image description here

Upvotes: 1

Views: 3922

Answers (2)

oRole
oRole

Reputation: 1346

As johnmoarr suggested, try changing the default Color Scheme of the editor.

If that won't work, you can still apply colors for any element by hand. Therefore open Visual Studio, go to the Tools-menu and open the menu-item Options.

enter image description here

Within the Options window open Environment and then Fonts and Colors. Locate the User Members and User Types within the list of display items just like I did in the following example:

enter image description here

Apply the desired color to the items foreground or background. Example: set item foreground to white for User Members - Methods to display method names with white color:

enter image description here

Upvotes: 0

johnmoarr
johnmoarr

Reputation: 522

In VS 2019, go to "Tools" > "Options" > "Text Editor" > "C#" > "Advanced" and make sure in section "Editor Color Scheme" VS 2019 is selected.

Edit: looks like they changed the options there in an update. I remember that in this options-section in an earlier VS2019 version there was a switch named "Use enhanced colors for C# and Basic"

Upvotes: 4

Related Questions