VS2008 导航到类定义加载项
我正在寻找一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
那么您可以使用 '代码定义窗口< /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.
在 Visual Assist 中使用 Alt+G 命令。
Use the Alt+G command in Visual Assist.