Demo of the Day: A Custom Visual Studio Editor in Every Pot
How can it be possible that it's been six years since we've highlighted work from Mads Kristensen? How is that even possible? Well, it's time to change that!
You've seen how Visual Studio's Solution Explorer groups files, nesting them, right? How the code behind files are nested under their visual elements?

We all know that this is just a visual thing, done by Visual Studio and the Solution Explorer, right?

That the magic happens in the project file?

Okay, maybe you didn't, but you do now! :)
So what does this have to do with Mads? He's written a cool Visual Studio Extension that lets you build your own nests... With his extension you can manually nest any files you want or even create rules for auto-nesting.
Oh, yeah and the source is available too... :)
File Nesting for Visual Studio makes it easy to nest any file under another file in Solution Explorer. You can both nest and un-nest any file with ease.
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:
File Nesting has these features:
- 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
See it in action;
Source? Yep, here's a snap of the Solution, which compiled for me with no problems at all (and you know how I like that. :)
So there you go. If you're an organization [um... not freak... because it's usually frown upon to call your readers "freaks" but you get the idea ;) ] person, want your Solution ogranizied they way YOU want it, or just want to see a cool project...
hey, that is a great idea. Thank you!
This is a great extension! However, auto nesting will not work for me. When I select auto nest selected items nothing happens as all. It will allow me to manually nest items. I'm not even sure how to troubleshoot this...
@dalealleshouse:Best bet would be to click through to the Visual Studio Gallery project and start a Discussion there. It's just much more likely that Mads will see your question there, then here (not that he doesn't read our blog, but... you know... :)
"Bad tool" - so to speak.
I asked it to "un-nest" my files and it actually deleted the file. What an unpleasant surprise.
@Eduardo: You should report that directly to the author, so he can take action on it. Click through, https://visualstudiogallery.msdn.microsoft.com/3ebde8fb-26d8-4374-a0eb-1e4e2665070c, and connect with him. Thanks
I just wanted to let everyone know that since Visual Studio 2017 15.6 Preview 4 (which was made available a few days ago) users have the ability to control how file nesting works in Solution Explorer.
Check out this blog posts for more details: https://blogs.msdn.microsoft.com/webdev/2018/02/07/file-nesting-in-solution-explorer/
This conversation has been locked by the site admins. No new comments can be made.