Visual Studio window which shows list of methods

后端 未结 20 1767
一向
一向 2020-12-07 14:37

In Visual Studio, is there a window which shows list of methods in the active class? A small window like the Solution Explorer would be great. In Eclipse, there is one.

相关标签:
20条回答
  • 2020-12-07 14:44

    At the top of your text editor, you should have a dropdown that lists all the methods, properties etc in the current type; and it's clickable (even if those members are defined in other files - in which case they're greyed out but you can still navigate with them).

    Also, if you use the Class Explorer (Ctrl+Alt+C) to navigate your project, then you'll get a full overview of all your types. However, there doesn't appear to be a setting in Tools/Options that allows you to track the active type in that window (there is for the solution explorer) - perhaps a macro or addin is in order...

    0 讨论(0)
  • 2020-12-07 14:44

    In Visual Studio 2005 and 2008 you can try the Source Code Outliner Power Toy.

    alt text http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SourceCodeOutliner&DownloadId=3493

    0 讨论(0)
  • 2020-12-07 14:44

    grep -i " sub " filename.vb > methods.txt grep -i " function " filename.vb >> methods.txt

    0 讨论(0)
  • 2020-12-07 14:45

    Shortcut to Navigation Bar is Ctrl+F2. Takes you to the types dropdown first. Press tab to go to method dropdown, and then enter on a method to go to that one.

    0 讨论(0)
  • 2020-12-07 14:45

    Despite it's an old question maybe this answer help you as helped me.

    you can download codemaid extension from here : codemaid website

    it has a lot of functionality that you may find in their website.

    the one that is related to this question is code digging

    Visualize and navigate through the contents of your C# and C++ files from a tree view hierarchy. Quickly switch between different sorting methods to get a better overview. Drag and drop to reorganize the code. See McCabe complexity scores and informative tool tips.

    in other words it give you ability to see the methods and properties and also reorganize them just with drag and drop. it's my everyday use extension

    0 讨论(0)
  • 2020-12-07 14:52

    Do you mean the class view window (View->Class View, or Ctrl+W,C)?

    You also have the intellisence popup-window

    0 讨论(0)
提交回复
热议问题