Visual Studio "document outline" for C# file

kux picture kux · Jul 16, 2014 · Viewed 14.7k times · Source

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?

Answer

kux picture kux · Jul 16, 2014

The best solution I found at present is:

JetBrains ReSharper (v8.0+) has a File Structure window which shows the structure of the current file as tree (types/members) and regions are also supported.

*.cs

App.xaml

App.config