How to make VS2010 not show useless information in the Methods drop-down list?

I have an application with tons of user interface components in a form. As a result, when I drop out of the list of tags (?), There are a ton of irrelevant entries.

enter image description here

Is there a parameter somewhere restricting the list to actual code constructs (e.g. methods / events / etc ...)?

+4
source share
2 answers

I don’t know how to do this with a drop-down list, but perhaps the extension will help you.

You can use something like VS10x Code Map :

VS10x Code Map

Solution Navigator also groups items by type, not alphabetically:

enter image description here

+2
source

The only setting I can find that affects the "Navigation Bar" is to hide / show, located in the "Tools / Options / Text Editor" / [Your Language] / "General" section below the display heading, "Navigation Bar "box.

Some ideas:
1) You can define all event handlers and additional methods in a subclass, and then one method in the parent class to associate everything with a private member of the subclass type. When only subclass methods appear in the subclass in the navigation bar.
2) You can get the class from your main form class by setting everything you need to see in the derived class as protected in the base class (for example, event handlers). It also effectively filters your navigation bar.

NTN

+1
source

Source: https://habr.com/ru/post/1393076/


All Articles