How to change the braces/parenthesis colors in Visual Studio

Viewed 36497

I am not talking about the highlight colors but the actual colors. I got a color scheme with light background color but the braces/parentheses are barely visible. Anyone knows how to change this?

Btw this is for C# because C++ seems to color braces/parentheses using operator color.

21 Answers

Tools > Options > Fonts and Colors > "Display Items" : Plain Text

Unfortunately this changes a lot more than just braces but its the only way to target them as far as I know.

I am using dark theme (not light), but I had a very similar problem. My parenthesis, braces and punctuations was black when I started my IDE today, making them just about impossible to see.

I tried to "default" the fonts and colors but that did not help. Neither did changing the settings for Plain Text, Braces or Punctuations.

However, changing from Dark to Light theme and then back to Dark again brought everything back to normal.

It is "Operator" for C++ (proof below), but "Punctuation" for C#. Change both.

enter image description here

For anyone that is here and have the same problem with Visual C++, if you are using visual assist, just know that it overrides the punctuation color scheme mentioned by the others. You have to change the color in the Visual Assist options and set it to another color than black (which is the default color). enter image description here

VS 2017 <

The following instruction shows how to change the background color of the matching braces and its rectangles. Click on the picture and take a look at the braces in the source code!

Open Visual Studio --> Tools --> Options

To change the backgroundColor follow the steps in the picture below!

enter image description here

Bah, posted an answer and it got lost. FF and my proxy server aren't getting along.

I think there's no way to just change the color of the parens, they seems to follow the text color. I did find this tool that lets you do all sorts of things with paren color; looked pretty nifty for $49.

in VS 2017 it is Tools > Options > Environment > Fonts and Colors > "Display Items" : "Brace Matching"

enter image description here

In VS2019 - I changed the item below to Lime so that when your mouse is "on" a brace or paren it highlights the one you're on plus the matching brace/paren. The screen shot below shows what I changed and the affect on the braces of my if statement.

Tools > Options > Environment : Fonts and Colors > Display Items : Brace Matching

Note that I clicked on or before the brace and it's lime.

To change the Matching Braces TOOLS>OPTIONS>FONTS AND COLORS
Under "Display Items" Select "Braces Matching(Rectangle)" to the color you want.

In VS2019 : Tools > Options > Fonts and Colors > Display Items : VA Brace Matching

it's a headache bug, happened with me after restarting my PC. the fastest way and the crossroad to fix it is by setting the theme to light them, they back to dark theme it fixed the problem fast.

tool-> options -> General -> light theme -> click ok

then

tool -> options -> General -> Dark theme -> click ok

it fix the color's distrubtions

As far as I have been able to find, you can't :-(

Related