In Debug-mode, the row currently executed is highlighted yellow and a yellow arrow is shown. Is it possible to turn the highlighting of the row off/on?
In VS2010: Menu Debug -> Options and Settings / General - Checkbox "Highlight entire source line for breakpoints and current statement.
Tools -> Options -> Fonts and Colors.
Find "Current statement" in the list and change the background to whatever your text editor background is. You might also want to change the other "Current ..." settings.
Related
Is there a way, either built-in or by third-party extension, to disable triple-click from selecting the entire line while in a text editor? Either my mouse is too sensitive, or I'm inadvertently doing it, but more often than not, clicking a word, then copy / pasting it results in pasting of the entire line -- not my intention and very annoying. Ideally, it could be disabled (aka any click more than 1 just selects the word the cursor is over)
As already stated in the comments the problem is most likely that the word highlighting color is so similar to the color of selected text. So seems like we sometimes deselect a word instead of selecting it. And without a selection Ctrl-C copies the whole line. I had the same issue with JetBrains WebStorm. In Visual Studio for me it was ReSharper.
Changing the color helps. Tools -> Options -> Environment -> Fonts and Colors -> "ReSharper Usage of element under cursor". I made that darker such that selected text is clearly distinguishable.
I have a blue box and a green line next to line numbers in studio. What are these and how can I get rid of them?
Blue box on the left is a bookmark. To toggle (turn on and off) a bookmark, place a cursor on the line and press Ctrl+F2 (or in menu Edit > Bookmarks > Toggle Bookmark). Bookmarks are useful tool. With F2 you can quickly jump to the next one.
Green bar (also yellow, and also orange in VS2010) is visual indicator that that line has been changed. More info here. The feature is useful, and you get used to it after a while, and think nothing of it. If you want to disable this feature go to menu Tools > Options > Text Editor > General and uncheck "Track changes".
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.
Whenever I do a find/replace in vs.net 2010, I can barely see where the highlighted text is on y screen.
I want to change the background color of the highlighted text during find/replace etc.
In vs.net settings (font and colors), what is the item name that is for the highlighted text during find/replace?
Within Visual Studio 2010
menu: Tools->Options->Environment->Fonts and Colors
in the Selected Items window: choose "Selected Text" (it's the second from the top for me.)
You can then change the background color (on the right side of the dialog window.)
The correct item is inactive selected text.
See Dave's answer here:
visual studio find and replace highlight color
You have to install the Productivity Power Tools extension to change this setting. Then it will be under Find Highlight (Extension).
For me, the selected text setting does not affect the color of highlighting when doing a find/replace or a quick find.
You'll find that one at: Text Editor -> Selected Text. You're looking to set the Item Background property. Be aware, it's the same format used for any time text is selected, not just when find/replace is invoked -- that specific action doesn't have a specific format associated with it.
Environment Fonts and Colors (Where's the one I'm looking for?)
I noticed that VS has a feature that if you click on a variable, it highlights all instances of that variable in your current file.
With my color scheme (a dark background with light text) it makes the highlighted variable very unreadable. I've gone through and tried to figure out which setting under "Environment Fonts and Colors" controls the background color of the highlighting, but I'm not having any luck. Can someone point me in the right direction?
So, in one sentence:
What in the list of "Environment Fonts and Colors" controls the highlighting that happens when you click on a variable?
It's called Highlighted Reference
Tools > Options > Env > Fonts and Colors > Text Editor > Highlighted Reference
And the result is:
In my case, I had to change Fonts and Colors > Text Editor > Match Color:
Highlighted Variable color change in Visual Studio
Tools >
Options >
Environment>
Fonts and Colors ->
Text Editor -> Highlighted Reference
Setting Page
Variable highlight
Then check it you will get color change.