42

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.

AnthonyWJones
  • 187,081
  • 35
  • 232
  • 306
Joan Venge
  • 315,713
  • 212
  • 479
  • 689

21 Answers21

94

The Visual Studio 2014 CTP 14.0.22129 dark theme blacked-out the brackets and semi-colon for some reason. I was able to fix this by changing the foreground color of the "Punctuation" display item.

Beau Harder
  • 1,062
  • 1
  • 7
  • 7
28

Tools > Options > Fonts and Colors > Display Items : Punctuation

HamidReza
  • 1,726
  • 20
  • 15
14

I know this is an old already answered question but I found a solution that suited me at least.

Set the "Plain Text" colour to be the colour you want the braces to be then set the "Identifier" colour to be what you want the rest of the text to look like.

John Hunter
  • 4,042
  • 4
  • 26
  • 35
  • Just what I needed. Thanks! It really helps JavaScript syntax for Metro development. Otherwise way too many things are the default text color. Thanks again! – Chad Carter Jul 11 '12 at 20:39
8

Visual Studio 2017 still has a problem to have black color as Default color in editor. Generally it's not, but it appeared to black by some reasons.

I changed below two items to Silver and press OK, and open Option again and back to Default it solved.

  • Tools > Options > Fonts and Colors > Display Items : Punctuation
  • Tools > Options > Fonts and Colors > Display Items : Operator
Youngjae
  • 24,352
  • 18
  • 113
  • 198
  • None of the other answers were working for me; changing both the foreground colour for Punctuation and Operator worked for me – Novastorm Jul 12 '17 at 11:13
  • I did an update and all the sudden logged in another day and my curly brackets and semi-colons were black on the dark-theme! Going to Tools > Options > Fonts and Colors > Display Items : Punctuation it was already light but I selected "Silver" as you said and Bam! Problem solved, thanks. – Anthony Griggs Jun 06 '20 at 14:16
7

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.

Andrew Hare
  • 344,730
  • 71
  • 640
  • 635
  • 1
    I don't know what's going on with my VS but Plain Text is being overridden by some magical force that won't let me change it from white – Brandon May 03 '16 at 17:06
  • 9
    Tools > Options > Fonts and Colors > Display Items : Punctuation, at least in VS 2015. Thanks @HamidReza. (I stole it from the answer below) – ra170 Mar 16 '17 at 19:48
  • 1
    Correction, in `VS 2017` it is Tools > Options > Environment > Fonts and Colors > "Display Items" : "Brace Matching" – Robert Green MBA Nov 15 '18 at 21:49
5

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

enter image description here

dan31
  • 71
  • 1
  • 3
4

To change item foreground and background colors in Visual Studio 2010 Ultimate fallow this: Tools->Options->Environment->General->Fonts and Colors. This worked for me to change Brace Matching(Rectangle) from default color which was barley visible, to my own chosen color.

Kashif
  • 439
  • 6
  • 10
4

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.

Spiralis
  • 3,232
  • 2
  • 39
  • 53
  • 1
    The colors of the braces, etc, broke for me after the installing an update. I tried everything, even importing my settings older settings that should have been correct. Nothing else was working for me at all, but this did the trick! – c0r3yz Sep 21 '18 at 16:09
4

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

Legends
  • 21,202
  • 16
  • 97
  • 123
3

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

pandaman1234
  • 523
  • 7
  • 17
3

Here are extensions that will colorize paris of matching brackets in the same color:

https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2

https://marketplace.visualstudio.com/items?itemName=TomasRestrepo.Viasfora

wip
  • 2,313
  • 5
  • 31
  • 47
2

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.

jcollum
  • 43,623
  • 55
  • 191
  • 321
2

You can change the Punctuation color in VS but it will actually change the color of all elements that fall in the Punctuation category.

If you want a solution which you can fine tune you can use the Semantic Highlighter Extension that we have developed. It can color different parts of code such as braces, brackets, parenthesis, angle brackets and even properties, fields, parameters, namespaces and more.

You can install it as a Visual Studio Extension. It is available in the gallery - just search for "Semantic Highlighter"

1

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

enter image description here

Robert Green MBA
  • 1,834
  • 1
  • 22
  • 45
1

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.

LReeder14
  • 608
  • 7
  • 10
0

I have changed the color of Parenthesis, Curly Braces and semi-colon by selecting Tools > Options > Environment > Fonts and Colors > Display Items : Operator. Enjoy Coding :)

0

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

0

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

0

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

Malek Tubaisaht
  • 1,170
  • 14
  • 16
-1

Tools > Options > Fonts and Colors >DisplayItem(D:):Parenthesis matching (square brackets) but visual studio 2015 Preview can only changge javascript braces/parenthesis color , C# 貌似不行:(

cary yuan
  • 1
  • 1
-1

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

Orion Edwards
  • 121,657
  • 64
  • 239
  • 328