c# - Visual Studio Code : How to see all classes inherited from a base class or interface?

标签 c# visual-studio-code

有什么方法可以查看从 Visual Studio Code 中的基类或接口(interface)继承的所有类?我知道如何找到所有引用资料,但这并不是我想要的。

注意 : 这个问题涉及到 Visual Studio 代码 , 不规则 Visual Studio .

最佳答案

不确定它是否适用于 C#源代码,但一般来说,你这样做:
右键单击类名,然后选择“Find All Implementations”或“Peek>Peek Implementations”。
或者
将光标放在类名上,在 Mac 上按 ⇧⌘P 或在 Windows 上按 ⇧CtrlP,然后开始输入“Implementations”:
enter image description here

关于c# - Visual Studio Code : How to see all classes inherited from a base class or interface?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39996841/

相关文章:

c# - 在 C# 中使用 "template"在类中实现类似的属性

ubuntu - VS CODE - 远程 ssh,防止下载项目或文件

c# - 我怎样才能防止 "possible loss of fraction"?

c# - 如何对折线内的一组实体应用变换?

git - 如何在 Visual Studio Code 并排文件中看到 'git diff'?

typescript - VSCode 实现方法快捷方式

python - 如何在 Visual Studio Code 中打开交互式 shell/REPL?

visual-studio-code - 在不同端口上使用 VS Code 调试 2 个 nodemon 实例

c# - Windows Phone 8 连接检查 WebClient 抛出可怕的 System.Net.WebException

c# - 从具有 'this' 的基类调用时,泛型函数参数的参数类型是什么?