智能感知 - 隐藏继承的成员?

发布于 2024-11-26 00:19:34 字数 250 浏览 2 评论 0原文

我和我的同事正在讨论 Visual Studio 中的一个烦恼。如果您正在使用从另一个大型类继承的类,例如 Controller,那么您将在智能感知中拥有大量继承成员。有时,您只想查看自己定义的成员,而不必在大量其他内容中查找内容。

我想如果你正在寻找你定义的东西,你应该知道它叫什么。但我知道当课程变得更加复杂时我会遇到这种挫败感。是否有一种内置方法可以让智能感知隐藏继承的东西,或者也许有一个插件可以提供此功能?否则我想我们必须有人来写它。

My coworkers and I were just discussing an annoyance we have in Visual Studio. If you're working with a class that's inherited from another large class, like Controller, you're going to have a huge list of inherited members in intellisense. Sometimes, you only want to see your own members that you defined yourself, instead of having to find things amongst a huge list of other things.

I suppose that if you're looking for something you defined, you should know what it's called. But I know I've run into this frustration when classes get a bit more complicated. Is there a built in way to have intellisense hide the inherited things, or maybe is there a plugin somewhere that provides this? Otherwise I guess one of us has to write it.

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

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

发布评论

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

评论(2

夜清冷一曲。 2024-12-03 00:19:34

Visual Assist X就有这样的功能。它允许您将继承的成员推到列表的末尾等等:

通过首先列出非继承条目来快速访问它们。
滚动查看基类的条目。

在选项对话框中启用此功能。结合使用
将非继承成员加粗并缩小以获得最佳效率。

此功能也可以从
过滤工具栏。

Visual Assist X has such a feature. It allows you to push inherited members to the end of the list and more:

Access non-inherited entries quickly by having them listed first.
Scroll to see entries from base classes.

Enable this feature in the options dialog. Use in combination with
bolding of non-inherited members and shrinking for optimal efficiency.

This feature can also be enabled or disabled dynamically from the
filtering toolbar.

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