Nest files in Solution Explorer
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 13 commits behind madskristensen:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

File Nesting

Build status

Download File Nesting from the VS Gallery or get the CI build.

Automatically nest files based on file name and enables developers to nest and unnest any file manually

See the demo video on Channel 9.


  • Manually nest files
  • Manually un-nest files
  • Auto-nesting based on naming conventions
  • Option to enable auto-nesting when files are added or renamed
  • Options to specify which naming conventions to apply
  • Keyboard shortcut for manual nesting (Ctrl+Alt+N)

You can both nest and un-nest any file with ease.

context menu

File Nesting also gives you the option to automatically nest based on file naming rules. You can then apply those rules to any files, folders or entire projects.

Here's a screenshot of that:

nested files nested files dark theme

Known issues

Due to missing or limited support for file nesting in certain project types, this extension will have no effect or be disabled. The project types are:

  • Node.js projects (NTVS)
  • ASP.NET Core (has built in rules for nesting)
  • Apache Cordova
  • Shared projects

There is nothing this extension can do to provide nesting in those project types. The support has to be added to the project type itself before support can be added.


Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.


Apache 2.0