38

I wish to have a more emphasis on the brackets match, so I set it to yellow and bold in the options. However, when I place my cursor next to a curly brace (also parenthesis, brackets etc.) it still only flags with washed-out gray...

How do I set the color to my liking?

The setting I've made was:

Tools → Options → Environment → Font and Colors
- Brace Matching (Highlight)
- Brace Matching (Rectangle)

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438

4 Answers4

15

I just tried it with the RC release we shipped this week and also seeing the problem. Will follow up with the team and get this fixed. I'll post updates here. Thanks for sharing the problem!

Update: I confirmed with the team that this is a known issue and is on the list to get fixed.

GusP
  • 2,454
  • 2
  • 23
  • 32
  • Any idea on time frame for that? Are we talking weeks, months or quarters? – Konrad Viltersten May 17 '15 at 11:14
  • 1
    It's now fixed, but I'm not sure what release train it will catch. You can see more details [here](https://github.com/dotnet/roslyn/pull/2520). – GusP May 17 '15 at 16:02
  • @GusP, what about this related, reported issue? http://stackoverflow.com/questions/27155034/how-to-change-the-braces-parenthesis-colors-in-visual-studio-2015 – MplsAmigo Jul 22 '15 at 14:17
  • @BrianPickens, just answered the question. Please let me know if I'm missing something. – GusP Jul 22 '15 at 20:27
  • 2
    In case this is still an issue for anyone, I always solve this (and other theming tweaks) with the [Visual Studio 2015 Color Theme Editor](https://visualstudiogallery.msdn.microsoft.com/6f4b51b6-5c6b-4a81-9cb5-f2daa560430b) (find it through `Tools → Extensions and Updates...` dialog). Simply edit the theme, switch to "show all elements" mode (top-left) and search for `Brace`. You want `Text Editor → Brace Matching → (Fore|Back)ground`. Click "Save and apply" (also top-left) – Basic May 09 '16 at 21:06
12

Tools → Options → Environment → Font and Colors → Punctuations

Affects all parentheses, commas etc.

On dark view it defaults to black over black

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
Assaf
  • 145
  • 1
  • 2
1

ReSharper also applies color to matching braces. You can turn this off in ReSharper options and then your VS color setting should be applied.

0

I fixed this by copying my customized theme to a new name, then made copy the 'current' theme. Then went into Fonts & Colors and set them for my preferences.

My braces were always disappearing into a big black rectangle (always 2 braces, matched or not). The blackness would not go away until I typed a Space or other character. Drove me up a wall...!

jeff porter
  • 6,560
  • 13
  • 65
  • 123