How do i turn off a Visual Studio refactor tool. (and use the resharper one) - visual-studio

I'm using Visual Studio and ReSharper. When clicking a "switch" statement, sometimes a "black hammer" icon is displayed and sometimes it's a yellow lightbulb. Like this:
i'm not sure which one is which, but i think, one of the icons is displayed by visual studio, the other by resharper. (i assume the yellow one is resharper, because it has more funktionality and for design reasons.).
is there a way i can turn off the "black hammer" one alltogether? Or, is there a reproducible way to allways get the same icon? Right now i have no idea why sometimes the hammer comes up and the lightbulb other times.

The 'bulb' and 'hammer' icons are both supplied by ReSharper (see here). You can merge the Visual Studio features with ReSharper's by adjusting the ReSahrper->Options...->Environment->Editor->Visual Studio Features settings.
You can change the icon theme by adjusting ReSharper->Options...->Environment->General

Related

Visual Studio IDE - strange suggestion

Sometimes my Visual Studio IDE tries to "help" me with this strange behavior:
(look at the red border and gray tooltip about Tab suggestion)
but in reality it's very annoying and I make more mistakes if I suddenly press the Tab button.
How can I turn off this sugestion / help of Visual studio?
It seems the problem is global. Vote here if you want Microsoft to fix it soon:
The red AI highlighting with the arrow and tab to replace is not working correctly

Visual Studio 2012/2013 Theme Documentation?

Is there a document or a chart somewhere that translates the thousands (possibly tens of thousands -- who knows!) of controls in the new Visual Studio color theme catastrophe into something recognizable by people who aren't clinically insane?
I have no idea what a "ClassDesignerClassCompartmentKey" is... or a "ProjectDesignerTabSepTopGradientEndKey", or any of the other fifty million unnecessary and unwanted "controls" that have been inflicted on us by the Visual Studio Design Team are.
All I want to do is fix the UI disaster that is Visual Studio 2012, but I don't have a clue where to start. I guess I can download another one of the useless Color Theme addins from the Microsoft Extensions that don't work, but at this point I'm so irritated by the complete lack of functionality in the four (maybe more...) useless addins that I have installed and removed that I'm going to write an application that will take my system desktop colors and brute-force them onto all five hundred billion "theme controls" so that I can go back to using an IDE that doesn't make me want to stab myself in the eyes.
If you want to see exactly what is being changed you can use this online theme editor. Go to create a new theme or select an existing one, click on the item that you want to change, it will give you the name that VS uses which you can adjust in the Visual Studio. You can create a theme or import the one that offends you and make alterations and export it out to be used.
If you're referring to ways to change the color theme of Visual Studio 2012, Scott Hanselman wrote a good article, Your Colorful Visual Studio 2012 with the Color Theme Editor (VS2010 colors, too). Probably of greatest interest he refers to Matthew Johnson's Visual Studio 2012 Color Theme Editor (a.k.a Visual Studio 2012 Color Theme Editor) which makes it simple to apply prebuilt themes. He also includes the following registry modification to turn off the all-caps feature.
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General\SuppressUppercaseConversion REG_DWORD value: 1

Is there a way to "bind" my Mouse4 button to "Navigate Backwards" in visual studio?

The title pretty much explains the whole question. I'm using Visual Studio 2010 Premium, I like the Navigate Backward command for when I right click on something and do go to definition and then I want to go back to where I was Navigate Backward works. But I'm so used to my mouse button button doing that, I've noticed I've starting using it in Visual Studio and expecting it to go back but it doesn't. I know how to change the command to a different key press, but is there a way to make it work on a mouse button?
This seems to be a (pointless) Limitation of the C++ IDE in Visual Studio. In C# the mouse buttons work as expected, but not in C++.
There are several Addins for Visual Studio to cover this functionality, I'll point you to the one that I found in this answer:
http://www.codeproject.com/Articles/57119/Forward-Backward-Code-Navigation-with-the-Mouse-Th
This Add-In worked for me. I could also upgrade it to Visual Studio 2012 by simply changing the Version-Tag in the Addin-file to "11.0".

Highlight all occurrences of a selected object with ReSharper

I was used to use RockScroll (or MetalScroll), but when I started to use ReSharper my RockScroll start to show some bugs. Well, this is scope to another discussion https://stackoverflow.com/questions/1089493/is-rockscroll-compatible-with-resharper.
But my problem is related, because now without MetalScroll I can't highlight all occurrences, what I consider very useful in many situations.
Someone have another plugin for VS2010 or for ReSharper that do the same or better?
I think you are looking for "Highlight usages in file" This can be access via Shift+Alt+F11 or Ctrl+Shift+F7 depending if you are using VS key bindings or InteliJ bindings. Use either Ctrl+Alt+Up/Down or Ctrl+Alt+PageUp/PageDown to go to next and previous highlights.
You can also use the Ctrl+Alt+G combo to bring up a menu of what to jump to. This can be used to move the cursor to the next occurrence.
You should try Productivity Power Tools for Visual Studio 2010. There are other versions, at least one for Visual Studio 2013 and another one for Visual Studio 2015.
It plays nicely with ReSharper and has this selected text matches highlighting both in the editor and the scrollbars among many other features.
Try the visual studio extension RockMargin which highlight the occurrences on double click (like most IDEs). Works fine with VS 2015 and ReSharper.

Highlight all references to X?

The Eclipse IDE has a neat little feature that I really miss in Visual Studio.
If I place the cursor on a variable or method name, the IDE will automatically highlight all references to it in the current document within the relevant scope.
I can't seem to find an option to turn on similar behaviour in VS2008 or Resharper 4. I know VS has a Find Usages function, but I'd like to do it automatically on the fly.
Does anyone know of a free addin which will add this functionality?
If you're using ReSharper, you can highlight the usages in the file with Shift-Alt-F11. Place your cursor on the variable you want to find usages of, and press the Shift-Alt-F11 combination.
There is an add-in for Visual Studio that will do something similar called RockScroll.
When you double click on something, it will highlight all occurrences of the item you double clicked. It also changes the vertical scrollbar to a "syntax highlighted thumbnail view" showing an overview of where the item occurs in the file.
I know you mentioned ReSharper, but CodeRush has a nice references window that you can dock and let it search for things on-the-fly or on demand. As a bonus, you can select each usage and it will show you the context surrounding the usage. It also works for methods.
I mentioned CodeRush since they have an express edition, which looks like it includes that feature, but I haven't tried that edition.
Visual Studio 2010 has sorta implemented this, but the feature is somewhat lacking. There is a non-configurable delay between placing the cursor and highlighting.
The RockScroll Addin is not available for Visual Studio 2010 and above.
As a replacement, the free "Highlight all occurrences of selected word" plugin will highlight all occurences of the selected string after a doubleclick. There is no delay as with the native vs2010 highlighter.
It is string-based, which means it works inside comments and string literals.
Microsoft published a tool that sort of does what you want.
Some of my favourite features:
Enhanced Scrollbar
Auto Brace Completion
Ctrl + Click Go To Definition
Open Containing Folder
and the list goes on.
For Visual Studio 2010 and for Visual Studio 2012

Resources