在 Visual Studio 中按 F1 时是否可以调用 .NET Reflector?

发布于 2024-07-19 02:35:12 字数 336 浏览 4 评论 0原文

当我在 Visual Studio 2008 中按 F1 时,我想启动 .NET 反射器并导航到所选的类/方法(而不是等待 Visual Studio 文档启动)。

是否可以以这种方式配置 Visual Studio?


后续问题:

  • 如何确定插入符号下的类型/程序集(如 x0n的答案)?

When I press F1 in Visual Studio 2008, I would like to start .NET reflector and navigate to the selected class/method (instead of waiting for the Visual Studio documentation to start up).

Is it possible to configure Visual Studio in that way?


Follow-up question:

  • how to determine the type/assembly under the caret (as described in x0n's answer)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

成熟稳重的好男人 2024-07-26 02:35:12

确实。

您必须编写一个宏(“工具”>“宏”)才能找到上下文“Assembly &”。 在插入符号下键入,然后生成:

Reflector <assemblyname> /select:my.namespace.typename

最后将 F1 重新绑定到您的宏(尽管我倾向于将其绑定到变体,例如 ctrl+shift+f1 或其他东西,因为您并不总是按 f1 来获取类型帮助)

-Oisin

Definitely.

You would have to write a Macro (Tools > Macros) to find the context Assembly & Type under the caret, then spawn:

Reflector <assemblyname> /select:my.namespace.typename

And finally rebind F1 to your Macro (although I would be inclined to bind it to a variant, like ctrl+shift+f1 or something since you don't always hit f1 for type help)

-Oisin

俯瞰星空 2024-07-26 02:35:12

这并不完全是您问题的答案,但我想补充一个事实,即 Visual Studio 中还有一种内置方法可以打开当前选定的类/方法的定义的(反编译的)源代码只需按 F12 即可。

This is not precisely an answer to your question, but I would like to add the fact that there is also a built-in way in Visual Studio to open the (de-compiled) source code of the definition of the currently selected class/method by simply pressing F12.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文