Recently I've started using one of the Dainty VS themes( the Night Owl) i'm really happy with this theme so far, except for the colors for some Reshapre's items, I've changed some of them and some I can't find or I don't know the item name exactly!. Items i want to change their color are in the following image inside the red circles.
https://ibb.co/Ln1ZwSW "Reshaper items"
Thanks.
Try changing the background color for the ReSharper Debugger DataTips item in Tools | Options | Environment | Fonts & Colors
I cannot figure out why the method names are colored dark blue instead of white. Below is my code, the problem is the Update() method name:
There is no problem, that's a special integration made when you work with Unity inside Visual Studio.
Normally, besides turning the method names blue, you should also see IntelliSense for MonoBehaviour methods (like Start, Update, Awake, etc).
I want to be able to get the rgb colour of the back of the text editor in visual studio so I can use it in an addin so it goes with the theme the user has set.
If the user has modified the background font it will be stored here:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\FontAndColors\{58E96763-1D3B-4E05-B6BA-FF7115FD0B7B}\Plain Text Background
If the user has not modified the color, you could key off of the theme they are using based on this registry value:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General\CurrentTheme
This is probably what you are after: IVsFontAndColorStorage interface
http://msdn.microsoft.com/en-AU/library/microsoft.visualstudio.shell.interop.ivsfontandcolorstorage.aspx
I can't find a way to change that anywhere and CodeRush sets the foreground color to a very light gray that is nearly unreadable on my monitor's white background. It is hard to read the code when variable names (as well as unused method parameters and using directives) are this light.
The options, such as colors of the different code issue types underlining, are available inside the Visual Studio configuration dialog. From the main IDE window, go to Tools | Options…, then Environment | Fonts and Colors. In the “Display items:” list, you can find the Dead Code item. For this item, you can change the “Item foreground” and “Item background” color properties.
See more details here: CodeRush Code Issues configuration and options
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.
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.
Tools > Options > Fonts and Colors > Display Items : Punctuation
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.
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
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.
It is "Operator" for C++ (proof below), but "Punctuation" for C#. Change both.
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.
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.
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).
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!
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.
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"
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
in VS 2017 it is Tools > Options > Environment > Fonts and Colors > "Display Items" : "Brace Matching"
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
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 :)
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 :-(
Tools > Options > Fonts and Colors >DisplayItem(D:):Parenthesis matching (square brackets)
but
visual studio 2015 Preview can only changge javascript braces/parenthesis color , C# 貌似不行:(