visual-studio “在对象浏览器中查看”的快捷键

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/685897/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 10:19:07  来源:igfitidea点击:

Shortcut key for 'View in Object Browser'

visual-studiokeyboard-shortcuts

提问by Pondidum

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;

字符串测试 = string.empty;

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

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

按下该键将打开对象浏览器到 System.String

采纳答案by Wilka

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

F12将转到源(如果有)或对象浏览器(如果它在引用的程序集中)。

回答by atreeon

This navigates to the correct class inside the object browser.

这将导航到对象浏览器中的正确类。

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

Shift+ Alt+ F12,然后在结果中右击并选择浏览定义

or

或者

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

Ctrl+ Alt+ J,然后在搜索框中输入名称

回答by Dave Johnson

Use Ctrl-Alt-J.

使用 Ctrl-Alt-J。

回答by Jungchan

Yes, this is CTRL + ALT + J

是的,这是 CTRL + ALT + J

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

这是参考:对象浏览器快捷键,Visual C++ 6.0 默认快捷键选项

回答by softwareengineeradvisor

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

我发现使用单个快捷方式完成此操作的唯一方法是通过 ReSharper 并定义。

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

编辑器上下文菜单。codewindow.navigate.resharper_navigatetoobjectbrowser as alt +shift + j (或你想要的)。也许有一种方法可以在不安装 ReSharper 的情况下创建代码,将其链接到函数并在此窗口中添加快捷方式,或者向 Visual Studio teem 开票

the shortcut

捷径

回答by Dan Tilakaratne

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

它曾经是 Ctrl + LeftMouseClick 在您要搜索的内容上(大约 2015 年),但它在 VS 2019 中不再起作用。

回答by ACyclic

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

当您按 F12 时,Resharper 导航到对象浏览器中的类