智能感知 - 隐藏继承的成员?
我和我的同事正在讨论 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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:
您可以尝试使用此:http://msdn.microsoft。 com/en-us/library/system.componentmodel.editorbrowsableattribute.aspx
You may try to use this: http://msdn.microsoft.com/en-us/library/system.componentmodel.editorbrowsableattribute.aspx