Shortcut key for 'View in Object Browser'

风格不统一 提交于 2020-01-01 01:56:10

问题


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


回答1:


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




回答2:


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




回答3:


Use Ctrl-Alt-J.




回答4:


Yes, this is CTRL + ALT + J

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




回答5:


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




回答6:


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



来源:https://stackoverflow.com/questions/685897/shortcut-key-for-view-in-object-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!