Shortcut key for 'View in Object Browser'
Asked Answered
R

7

18

Does anyone know if there is a shortcut key for viewing the selected object (in the text editor) in the object browser?

I am sure there was one, but I cannot find it, or anything that seems to work in the key bindings dialog.

eg:

string test = string.empty;

if (string.isnullorempty(test))
{                          ^ caret here
    ...
}

pressing the key would open the object browser to System.String

Russi answered 26/3, 2009 at 13:54 Comment(1)
Not an answer to the question, but here's another way to open the Object Browser with some context. In Solution Explorer, if you expand References and right-click a reference, there is an option to 'View in Object Browser'.Allmon
E
7

F12 will go to the source (if you have it), or the object browser if it's in a referenced assembly.

Ellingston answered 27/3, 2009 at 22:51 Comment(4)
It navigates to a source code definition (from metadata) for me, even for referenced assemblies.Mesopause
Was working for me before, now not, only Ctrl-Alt-J working now, how to get back F12? I did install 'MVC 3 Tools Updates' but don't think that it could be the case.Farrel
Is there any way to open any reference in object browser instead of generated metadata code - like in VB? Perhaps I should write an extension for this.Punchdrunk
Is there a way to force opening a symbol in OB in C# projects??Punchdrunk
W
17

This navigates to the correct class inside the object browser.

Shift+Alt+F12, then right click in the results and select Browse Definition

or

Ctrl+Alt+J, then type the name in the search box

Wingding answered 26/11, 2013 at 12:10 Comment(1)
Unfortunately, Shift + Alt + F12 (Edit.QuickFindSymbol) is pretty hit-or-miss.Muchness
V
7

Use Ctrl-Alt-J.

Volar answered 26/3, 2009 at 14:1 Comment(2)
Doesn't navigate the the object though :(Russi
CTRL+ALT+J only opens the object browser, and doesn't navigate to the object you're currently selecting.Vanya
E
7

F12 will go to the source (if you have it), or the object browser if it's in a referenced assembly.

Ellingston answered 27/3, 2009 at 22:51 Comment(4)
It navigates to a source code definition (from metadata) for me, even for referenced assemblies.Mesopause
Was working for me before, now not, only Ctrl-Alt-J working now, how to get back F12? I did install 'MVC 3 Tools Updates' but don't think that it could be the case.Farrel
Is there any way to open any reference in object browser instead of generated metadata code - like in VB? Perhaps I should write an extension for this.Punchdrunk
Is there a way to force opening a symbol in OB in C# projects??Punchdrunk
G
2

Yes, this is CTRL + ALT + J

Here is the reference: Object Browser Shortcut Keys, Visual C++ 6.0 Default Shortcut Option

Gemma answered 27/3, 2009 at 19:49 Comment(1)
The link provided is no longer useful.Disaster
B
1

The only way I found doing it with a single shortcut is through ReSharper and define.

Editor context menu. codewindow.navigate.resharper_navigatetoobjectbrowser as alt +shift + j (or what you want). Maybe there is a way to create a code, link it to the functions and add the shortcut in this window without installing ReSharper, or open a ticket to visual studio teem

the shortcut

Bluma answered 24/1, 2019 at 12:44 Comment(0)
H
1

It used to be Ctrl + LeftMouseClick on what you want to search for (around 2015), but it does not work anymore in VS 2019.

Hailey answered 15/4, 2020 at 12:4 Comment(0)
M
-2

Resharper navigates to the class in object browser when you press F12

Millford answered 9/1, 2011 at 16:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.