VS2008 导航到类定义加载项

发布于 2024-07-09 04:30:34 字数 380 浏览 6 评论 0原文

我正在寻找一个 Visual Studio 插件,它可以分析光标位置周围的文本并导航到相应的类定义。

例如,我当前打开了以下 XML 文件:

<object id="abc" type="MyProject.Foo.Bar, MyProject"/>

如果我将光标放在 type 属性上的双引号之间,则加载项应获取字符串 "MyProject.Foo.Bar , MyProject" 并搜索当前解决方案中给定类型的所有项目和项目引用,如果找到,则应导航到类定义(如果源代码在当前解决方案中不可用,则导航到元数据) )。

如果这样的加载项不存在,我将非常感谢一些可以帮助我编写加载项的指示。

I am looking for a Visual Studio add-in that would analyze the text around the cursor position and navigate to the corresponding class definition.

For example I have this XML file that is currently open:

<object id="abc" type="MyProject.Foo.Bar, MyProject"/>

If I put the cursor somewhere between the double quotes on the type attribute the add-in should obtain the string "MyProject.Foo.Bar, MyProject" and search for all projects and project references in the current solution for the given type and if it finds one, it should navigate to the class definition (or metadata if the source code is not available in the current solution).

If such add-in doesn't exist I would greatly appreciate some pointers that could help me writing one.

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

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

发布评论

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

评论(2

月棠 2024-07-16 04:30:34

那么您可以使用 '代码定义窗口< /a>'是VS2008 IDE自带的。 当您放置光标时,Code Def 窗口会动态更新该类型的源代码。 适用于常规源文件。手头没有 IDE 来验证 XAML/XML

另外,您可以使用“跳转到符号”组合键,但需要为此添加 CodeRush Express。 Shift+Ctrl+Q。 更多详细信息请参见此处

Well you could use the 'Code Definition Window' that comes with the VS2008 IDE. When you place your cursor, the Code Def window dynamically updates with the source code for that type. Works with regular source files.. don't have the IDE at hand to verify with XAML/XML

Also you could 'Jump to Symbol' key combo but you would need CodeRush Express add in for that. Shift+Ctrl+Q. More details here.

未央 2024-07-16 04:30:34

Visual Assist 中使用 Alt+G 命令。

Use the Alt+G command in Visual Assist.

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