Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio "document outline" for C# file

In Visual Studio (2013/2015/2017), the Document Outline window for C# files is always empty ("There are no items to show for the selected document."). It seems that this functionality is not (not yet / no more) implemented.

But then, how do I view the structure of the file? Is there any extension which implements this functionality?

  • showing only the selected/opened file
  • show regions
  • move/rename members
  • show documentation

Using the Solution Explorer and Class View are NOT the solution. In the old Visual Studio 2003, I did use a self written Add-In, because it was easy to read the structure. (There were also other tools but I cannot find them anymore). So I ask here which solution you know. :-)

EDIT: Similar question also found: How to show code outline in Visual Studio?

like image 615
kux Avatar asked Jul 16 '14 16:07

kux


2 Answers

There is also CodeMaid which provides the same functionality as JetBrains Resharper, but is free.

enter image description here

enter image description here

like image 70
ChrisB Avatar answered Sep 18 '22 18:09

ChrisB


It helps you look at the nested structure of certain types of files, e.g. windows forms designer file, open a form designer you should see all controls on the form shown in nested structure in the document outline window.

like image 23
Xeon Avatar answered Sep 16 '22 18:09

Xeon