开发者

Intellisense - Hide inherited members?

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 开发者_JAVA百科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.


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.


You may try to use this: http://msdn.microsoft.com/en-us/library/system.componentmodel.editorbrowsableattribute.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜