如何在 Visual Studio 2017 中查找派生类?

公平

我没有安装 Resharper .. 我想查看所有继承自的子类,IActionResult并且show derived classes在对象浏览器和类视图中没有类似的东西

我尝试安装扩展程序TypeHierarchyViewer( https://marketplace.visualstudio.com/items?itemName=munyabe.TypeHierarchyViewer ) 但它不起作用(即使使用示例List,也只是空白)。

所以我该怎么做?

我经常使用这个功能使用eclipse开发java应用程序..VS2017中似乎没有开箱即用的工具,或者我只是错过了一些东西??

在此处输入图片说明

Go To Implementation表示该符号没有实现)

在此处输入图片说明

(在类视图中相同)

I have searched many "solutions"(like Visual Studio: How do I show all classes inherited from a base class?) but not work or need other tools(or just see the doc?).

I want to see if there anyway to do it just using VS.

Before I thought VS was a very good IDE but I can't image it lacks so much basic functions...(so there is Resharper...)

And I find there is derived types but in Solution explorer:

在此处输入图片说明

在此处输入图片说明

But you can't input the class you want And if I input IActionResult in search box it will not find it(not in the my source and I don't implement it).

After trying..I find VS support it in solution explorer...
But it's hard to use...
I need to find some classes or interface in my source code related to the class or interface I want and use derived type and implements to find the it..
It looks like:
在此处输入图片说明
(I find a class and navigate to object, it lists all classes .Then I find ActionResult and choose implements find IActionResult, finally I can see all derived classes above... ...)

fairjm

emmmmm
it seems there is no direct way using VS(although I can get all sub classes using solution explorer but it's too verbose...) to get the result I want.

最后我选择使用 dotpeek(我不想购买 resharper,因为我只是研究 ASP.net 核心而不是为了工作)
C:\Program Files\dotnet\sdk\NuGetFallbackFolder在依赖项所在的 dotpeek 中打开
然后使用Hierarchies得到结果。
在此处输入图片说明

对VS有点失望。在我听到之前没有那么强烈。
谢谢你的帮助。:)

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在Visual Studio 2017中更改查找结果格式?

如何在Visual Studio 2017中获取Spy ++?

如何在Visual Studio 2017中集成SVN

如何在Visual Studio 2017中显示呼叫堆栈窗口

如何在Visual Studio 2017/2019中获取终端窗口?

如何在 Visual Studio 2017 中关闭 Windows 窗体继承?

如何在Visual Studio 2017中禁用JavaScript构建错误?

如何在 Visual Studio 2017 的默认模板中更改路由?

如何在Visual Studio 2017中使用Qt库?

如何在Visual Studio 2017中配置TypeScript和要求

如何在Visual Studio 2017中使用Java

如何在 Visual Studio 2017 中调试或跟踪 Angular 绑定?

如何在Visual Studio 2017中编译更少/无效的文件

如何在Visual Studio 2017中运行NUnit测试?

如何在 Visual Studio 2017 中关闭 JSLint?

如何在Visual Studio 2017中使用Jupyter Notebook?

如何在Visual Studio 2017中启用WiX项目

如何在Visual Studio 2017中打开CodeLens?

如何在Visual Studio 2017中包含.Net Core 2.0

如何在Visual Studio 2017中更改调试端口?

如何在Visual Studio 2017中重新启用格式

如何在Visual Studio 2017 15.5中禁用AVX?

如何在Visual Studio 2017中摆脱损坏的Python环境?

如何在Visual Studio 2017中更改断点的位置

如何在Visual Studio 2017中创建MVC项目?

如何在Microsoft Visual Studio 2017中检查C ++版本

如何在 Visual Studio 2017 中添加和使用图像?

如何在Visual Studio 2017中禁用Roslyn语言服务?

如何在Visual Studio 2017中为C ++安装Npgsql