In VS 2015 I'm getting a weird brace highlighting effect. Using the Dark theme, I'm getting a light gray box around the pair of braces, parens, or quotation marks when I place the cursor after the closing token.
I though that this was a plugin, but I disabled both CodeRush and Productivity Power Tools and it is still happening.
I thought that VS 2013 did the same thing, but I can't remember how to turn it off.
Tools -> Options
Environment -> Fonts and Colors
Brace Matching: Set foreground and background to "Automatic".
No need to change Brace Matching (highlight) or Brace Matching (rectangle)
Related
Everything was fine until one update changed a formatting setting and I don't know how to reverse it.
Whenever I select C++ code and try to replace the text with an open brace, it will simply surround the selected text, instead of replacing it with the open brace.
This gets really frustrating after a while, e.g. trying to replace a < less symbol with a > symbol is now impossible when using selection.
How can I disable this behavior?
I am using Visual Studio Community 2022 Version 17.4.0
To disable this mode, head to:
Tools -> Options -> Text Editor -> C/C++ -> Advanced
and set Auto Surround Mode to Never.
Excel performs some color coding of parentheses according to their "depth":
Is such a thing possible in Visual Studio (any version)? I know how to modify the color of parentheses and how to do brace matching, but I'm asking about different (and permanent) colors for parentheses (and braces, etc) according to their depth.
I know this isn't possible with vanilla Visual Studio, but is there an addin out in the wild which does this?
"Rainbow braces" are implemented by the extension Viasfora.
In Notepad++ for example when your cursor is next to a brace it will highlight the corresponding opening or closing brace on screen.
Check out the link below for a example as to what I mean.
http://www.atmel.com/webdoc/visualassist/visualassist._match.html
How can Visual Studio do this?
The Visual Studio 2013 C# editor has brace highlighting. Place the cursor on the outside of the brace, (not the inside) to see the highlight.
The default color is very subtle, use the Tools\Options\Fonts And Colors setting to apply a different highlight color.
I suspect that I turned on yellow whitespace highlighting with some unknown key combination. But now, duly annoyed by the yellow highlighting, I would like to know how I might turn it off. All searches so far have been fruitless and I've never seen this behavior before.
Hit ctrl+f and delete what you are currently searching for. I just realized I had hit tab in the search box, so all tabs were highlighted in yellow.
I noticed these yellow highlights after installing
Menees VS Tools Extension for Visual Studio.
Disabling this extension also disables the highlights.
How can I remove unwanted border around the matching braces in Visual Studio 2013?
Update:
By "border" I mean the little border which surrounds green rectangles. VS2012 doesn't create it, VS2013 creates it.
Visual Studio 2012 behavior:
Visual Studio 2013 behavior:
Tools -> Options -> Environment -> Fonts and Colors -> Brace Matching (Rectangle) and Brace Matching (Highlight), set the item foreground and Item background the same colors for both.
If you have ReSharper it's ReSharper Brace Outline and ReSharper Matched Brace, set the Item foreground and Item Background the same for both.