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
F12 will go to the source (if you have it), or the object browser if it's in a referenced assembly.
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
Yes, this is CTRL + ALT + J
Here is the reference: Object Browser Shortcut Keys, Visual C++ 6.0 Default Shortcut Option
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
It used to be Ctrl + LeftMouseClick on what you want to search for (around 2015), but it does not work anymore in VS 2019.
Resharper navigates to the class in object browser when you press F12