c# - C# 文件的 Visual Studio "document outline"

标签 c# visual-studio file-structure outline-view

Visual Studio (2013/2015/2017) 中,C# 文件的Document Outline 窗口 始终为空(“没有为所选文档显示的项目。”)。 似乎此功能尚未(尚未/不再)实现。

但是,我该如何查看文件的结构呢?是否有实现此功能的任何扩展?

  • 仅显示选定/打开的文件
  • 显示区域
  • 移动/重命名成员
  • 显示文档

使用解决方案资源管理器和类 View 不是解决方案。 在旧的 Visual Studio 2003 中,我确实使用了自己编写的 Add-In,因为它易于阅读结构。 (还有其他工具,但我找不到了)。所以我在这里问你知道哪种解决方案。 :-)

编辑:还发现了类似的问题: How to show code outline in Visual Studio?

更新:10 年后,该功能终于出现在 VS 2022 中

最佳答案

还有CodeMaid它提供与 JetBrains Resharper 相同的功能,但免费

enter image description here

enter image description here

关于c# - C# 文件的 Visual Studio "document outline",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24786333/

相关文章:

c# - 如何在 MathNet 中找到最大矩阵元素?

c++ - Google Native Client Visual Studio 插件 : Webserver fails to start because arguments to httpd. py 无效

java - Java 系统包存储在哪里?

C++ 头文件和 cpp 文件 - 我该如何管理它们?

c# - 如何将磁盘可用空间性能计数器添加到 Azure Application Insights?

c# - 如何将动态字典值转换为列表?

c# - 在 Visual Studio 2010 中使用扩展对象调试 XSLT

java - 用 Java 从文本文件中读取行并分割内容

c# - 有没有比 TextWriter/StringBuilder 更高效的文本后台处理程序

c# - 无法将文件添加到解决方案 : "A file or folder with the name [name] already exists"