How do I change find result highlight color with VS2010 and Resharper? - visual-studio-2010

I just installed Resharper and it's changed the highlight color for find results. Normally when I place my cursor on a particular symbol, say a variable called 'goat', all onscreen references to goat will be highlighted with a gray background. When I hit Ctrl+F to move through all references to goat in the document the current find result has the same gray background as all others on screen. So I have no idea which goat I'm currently at until I close the find dialog at which point the currently selected goat highlights in blue.
This makes it really difficult for me to quickly check all references to a given variable in file. I know you can change color settings in Tools->Options->Environment->Fonts And Colors, however I've been unable to find a setting that corresponds to the currently selected find result.
If the currently selected find result was any color other than gray, it would stand out, but as it is it makes Find as effective as simply clicking on a variable and having VS2010 highlight all current onscreen references.

The setting to change is "Inactive Selected Text". It is in Tools->Options->Environment->Fonts And Colors, Show Settings for Text Editor, third option down.

Related

The colors of Visual Studio [duplicate]

I have only recently paid any attention to the appearance of little green and blue rectangles on my vertical scroll bar in code editing windows in VS2010. Can anyone tell me what these are?
I'm running with the Productivity Power Tools extension and ReSharper 6.
I have not found a color legend for the bits, but here is what we have found so far;
Light Blue = Bookmarks
Blue = Error / Warning
Orange = Find Results
Red = Breakpoint
Light Purple = Other instances of the selected variable
Dark Blue = Current cursor location
Yellow = Not saved changes
Green = Saved Changes
Dark Green = Spelling error (in comment or string literal)
From the productivity power tools extension page:
Enhanced Scrollbar
We’ve been looking into ways that we can
improve the experience of navigating through code files. Our solution
is the source map which has three modes that will allow you to more
easily see the interesting artifacts in your files (edits,
breakpoints, bookmarks, errors, warnings etc) and make it easy for you
to navigate between them. The default mode is the “scroll bar only
mode” which overlays icons onto the standard scrollbar to allow for
viewing of these artifacts. In the source map mode, we’ve replaced the
default scroll bar allow you to click on any item on the scrollbar to
navigate directly to it. This source map mode also provides a preview
of the part of the document as you hover. Finally, we have the
detailed source map mode, which allows you to get a zoom out view of
your entire file. You can switch between any of these modes by
right-clicking on the scroll bar or going to Tools
Options>Productivity Power Tools>Source Map where we have a host of
other options that you can configure.
For what it is worth if you hover on the word with a spelling error a box will appear below. You then mouse over the box and a drop arrow will appear from there you can select the correct spelling or add a word to the dictionary.

What's the name of the bar below the Property grid in VS?

I'm using the Visual Studio Color Theme Editor extension to help darken up VS2010, found a nice theme that I like however I've got one big problem with it.
On the Property sheet, at the bottom where it says the name of the property and a sort description this theme I'm using is impossible to read; Black on a dark grey background. Unfortunately, I don't know what this specific segment of the Property window is called to change it.
You can not change the text color with the extension.
To figure that out, copy FFFFFF, select all line in the theme editor configuration pane (with Shift), press Ctrl+V (yes, you can do that, pretty neat !) and hit apply : everything that can be themed will then appear white. The text however, will stay black.
You can hopefully change the background color : It's called ToolWindowBackground. It will affect all tool windows of course. There's no specific item for this window in particular.

How to locate the formatting of a line in the Options/Fonts and Colors dialog?

I am using Resharper 6.x with VS2010. One of the features is that if you double click on a variable, it is highlighted and then other usages of the variable are highlighted, like so:
The background and foreground colors of the highlighted variable are too close to each other and I am trying to change it in the Options/Fonts and Colors dialog. It has a small Sample window (below). I've gone through the entire list of display items and can't find the one matching what I see in the coding window.
So 2 questions:
Which display item should I change to affect the back/fore colors of the highlighted variables?
Is there some tool that that will point me to the display item in question for any piece of code?
P.S. I am using the Ragnarok as my base color theme.
P.P.S. This may have nothing to do with Resharper. I turned it off and the coloring was still there. I guess my original question still stands - how to affect the colors of the highlighted variables.
Visual Studio 2010 Reference Highlighting
As you already presumed: The reference highlighting of current selection is not a ReSharper feature but a VS 2010 feature. So you need to look at VS items in Fonts and Colors dialog.
The right display item is Highlighted Reference.
ReSharper Reference Highlighting
ReSharper's equivalent is Highlight usages in file by pressing Shift+Alt+F11.
Then all read references have light blue background color (related display item in Fonts and Colors dialog is ReSharper Read Usage).
And all write references have rose background color (related display item in Fonts and Colors dialog is ReSharper Write Usage).
But the disadvantage of ReSharper's reference highlighting is that you need to press a shortcut. VS does the highlighting automatically.

What are the little coloured bits on my vertical scroll bar in Visual Studio 2010?

I have only recently paid any attention to the appearance of little green and blue rectangles on my vertical scroll bar in code editing windows in VS2010. Can anyone tell me what these are?
I'm running with the Productivity Power Tools extension and ReSharper 6.
I have not found a color legend for the bits, but here is what we have found so far;
Light Blue = Bookmarks
Blue = Error / Warning
Orange = Find Results
Red = Breakpoint
Light Purple = Other instances of the selected variable
Dark Blue = Current cursor location
Yellow = Not saved changes
Green = Saved Changes
Dark Green = Spelling error (in comment or string literal)
From the productivity power tools extension page:
Enhanced Scrollbar
We’ve been looking into ways that we can
improve the experience of navigating through code files. Our solution
is the source map which has three modes that will allow you to more
easily see the interesting artifacts in your files (edits,
breakpoints, bookmarks, errors, warnings etc) and make it easy for you
to navigate between them. The default mode is the “scroll bar only
mode” which overlays icons onto the standard scrollbar to allow for
viewing of these artifacts. In the source map mode, we’ve replaced the
default scroll bar allow you to click on any item on the scrollbar to
navigate directly to it. This source map mode also provides a preview
of the part of the document as you hover. Finally, we have the
detailed source map mode, which allows you to get a zoom out view of
your entire file. You can switch between any of these modes by
right-clicking on the scroll bar or going to Tools
Options>Productivity Power Tools>Source Map where we have a host of
other options that you can configure.
For what it is worth if you hover on the word with a spelling error a box will appear below. You then mouse over the box and a drop arrow will appear from there you can select the correct spelling or add a word to the dictionary.

How to change out-of-focus text selection color in Xcode?

Okay, I'll bite.
I've got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible.
When I am doing a project search and iterating through the results, however, the results list stays in focus and the found text remains out of focus, using a different background color. This color is extremely hard to detect, especially when the text is embedded in a larger code block and the view is shifting around as it scrolls to the results.
Here's an example:
Left side is in focus (just normal selection), right side is out of focus (during project find)
Often it takes a few seconds to find where the heck the selected text is.
Unless I'm just missing it, Xcode seems to offer no way to change this particular selection color. Interestingly, it also doesn't seem to follow the selection color from the Appearance panel.
Does anyone know a way to change this color or force it to be more visible, short of changing my entire color scheme around?
Use this Xcode plugin:
http://github.com/tjw/XcodeSelectionColorFix
Instructions for using it are here: http://github.com/tjw/XcodeSelectionColorFix/blob/master/README.markdown
You can manually edit the theme file, which might allow a different selection color. If I recall (not on my dev machine), personal themes are in ~/Library/Application Support/Xcode/(should be intuitive from here/can't remember)
You can edit them in Property List Editor, if I remember right. The Xcode preferences don't expose all of the options available in the theme file.

Resources