Visual Studio window which shows list of methods

后端 未结 20 1768
一向
一向 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:52

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

    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).

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

    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

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

    My best way to do this is, that i open the Code Definition Window, under View -> Code Definition Window or press Ctrl + W,D .

    And then i got it floated and i have the definitions of methods in separate windows.

    Regards

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

    There is no direct equivalent to the Outline View in Eclipse. The closest thing I've found is the Class View, which lists all classes and their members/methods. There is a search box at the top to narrow the selection.

    0 讨论(0)
  • 2020-12-07 15:00

    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

    0 讨论(0)
  • 2020-12-07 15:03

    ReSharper has a 'ReSharper | Windows | File Structure' window, which is used for visualizing current code file structure.

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