Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I turn "Object Browser" to "Metadata" for "Go to definition" in Visual Studio 2010?

Before installing Resharper, Ctrl + Left Click for Go to definition, Visual Studio 2010 uses to Metadata. After the install Resharper, when I try to first time Ctrl + Left Click, Resharper asked me with popup where I want to go, I click Object Browser for testing. Now I want to get back this setting, but in Resharper, there is only one option for this;

ReSharper | Options -> Environment | Search & Navigation and turning off or on Go to declaration on Ctrl+ Left click in editor

Resharp options

But If I turned off this setting, It doesn't take back this setting to Metadata. It still goes to Object Browser. I don't want to reset all keyboard shortcuts because I use all other Resharper's shortcuts. How can change only this setting ?

like image 338
Soner Gönül Avatar asked Dec 26 '12 22:12

Soner Gönül


People also ask

How to enable Go to definition in Visual Studio?

If you are a keyboard user, place your text cursor somewhere inside the symbol name and press F12. If you are a mouse user, either select Go To Definition from the right-click menu or use the Ctrl-click functionality described in the following section.

Why is definition disabled in Visual Studio?

Don't close Visual Studio but close all the files and open them again by clicking on the file in the solution. The file might have been opened by Source Safe or you maybe opened it from Windows Explorer. In this case the file doesn't get assosiated with your solution and the Go to Def.

How do I view metadata in Visual Studio?

Open your solution in Windows Explorer and close down Visual Studio. In the explorer menu, select View and ensure that the "Hidden items" checkbox is marked.


2 Answers

Under ReSharper > Options > Tools > External Sources, select Default Visual Studio navigation (or "Navigation to Sources" for a wider set of navigation options incl. decompilation and fetching stuff from symbol servers)

like image 56
Jura Gorohovsky Avatar answered Oct 19 '22 09:10

Jura Gorohovsky


If anyone has this issue in VS2012?

I just fixed it with Tools > Options > Environment > Keyboard

  • select "Visual C# 2005"
  • under "Apply the following additional keyboard mapping scheme".
  • Then click 'Reset'.

This was infuriating, hope it helps someone else. Worked for me with VS 2010 perfect.

like image 45
Ashish Avatar answered Oct 19 '22 11:10

Ashish