Visual Studio window which shows list of methods

2019-01-16 17:26发布

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.

19条回答
聊天终结者
2楼-- · 2019-01-16 18:03

Resharper has the File Structure window which is very similar to eclipse outline view. Originally answered in:

Visual Studio 2012: List of all Methods in class

Resharper help: http://www.jetbrains.com/resharper/webhelp/Reference__Windows__File_Structure_Window.html

Screen shot of File Structure window

查看更多
相关推荐>>
3楼-- · 2019-01-16 18:04

There's a drop down just above the code window:

alt text

It's called Navigation bar and contains three drop downs: first drop down contains project, second type and third members (methods).

You can use the shortcut Ctrl + F2 (move focus to the project drop down) and press Tab twice (move focus to the third drop down) to focus it, down arrow will expand the list.

Full size image

查看更多
Viruses.
4楼-- · 2019-01-16 18:05

A nice clean way to do this is to use View.SynchronizeClassView.

enter image description here

Additionally you can:

  • pin your Class view window
  • collapse the top pane (listing all the classes)

And now it feels just like the Visual Assist's feature "List Methods in Current File" (which also list members btw).

查看更多
Ridiculous、
6楼-- · 2019-01-16 18:08

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

查看更多
Luminary・发光体
7楼-- · 2019-01-16 18:08

I have been using USysWare DPack since forever. It is very small and not intrusive so if all you want is a quick shortcut window showing list of methods of the current file you are using, it provides just that. Good thing is that the author is still active after more than 10 years just to keep providing the same features into latest VS release.

https://marketplace.visualstudio.com/items?itemName=SergeyM.DPack-16348

After installation, just use Alt + M to bring up the method list window. I prefer to show all members instead, but it's up to you.

查看更多
登录 后发表回答