Skip to content
| Marketplace
Sign in
Visual Studio>Tools>File Nesting 2026
File Nesting 2026

File Nesting 2026

Lei Zhang

|
2 installs
| (0) | Free
Nest related files in Visual Studio 2026 Solution Explorer manually or with file naming rules.
Download

File Nesting 2026

在 Visual Studio 2026 的解决方案资源管理器中,将同目录的相关文件整理到父文件下面。扩展通过项目元数据记录层级,源文件仍在原来的磁盘位置。

快速开始

  1. 同一 C# 项目的目录中有 Order.cs 和 Order.Designer.cs 时,右键 Order.Designer.cs。
  2. 选择 文件嵌套 2026 → 按规则嵌套,名称片段规则会匹配到 Order.cs。
  3. 要自行指定父文件,选中两个文件后使用 嵌套文件…。要解除关系,右键子文件并选择 取消嵌套。

可对文件、目录或整个项目运行规则。七类内置规则位于 工具 → 选项 → File Nesting 2026 → 常规。新增或重命名后的自动匹配默认关闭,可从右键菜单开启。

面向 Windows x64 上的 Visual Studio 2026 和 C# 项目。链接文件不参与嵌套。更多规则、构建方法和兼容性说明见 GitHub 仓库。规则参考及许可见第三方声明。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft