Shortcut key for 'View in Object Browser'

2020-06-01 06:29发布

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

7条回答
乱世女痞
2楼-- · 2020-06-01 06:57

Yes, this is CTRL + ALT + J

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

查看更多
小情绪 Triste *
3楼-- · 2020-06-01 06:58

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

查看更多
Summer. ? 凉城
4楼-- · 2020-06-01 06:58

Use Ctrl-Alt-J.

查看更多
叼着烟拽天下
5楼-- · 2020-06-01 07:00

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

查看更多
姐就是有狂的资本
6楼-- · 2020-06-01 07:01

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

查看更多
地球回转人心会变
7楼-- · 2020-06-01 07:02

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

查看更多
登录 后发表回答