Identify and Nest Dependent Files in Solution Explorer using Right Click Menu
Identify and Nest Dependent Files in Solution Explorer using Right Click Menu.
Allow us to nest files in solution explorer without having to edit the csproj file. For example, we have 4 files that are breeze.*.js, and I like to nest them as dependent on breeze.js so they show up collapsed in solution explorer.
Currently we edit the csproj file to do this, and we also do it for css and for custom js. Another example:
For files like jQuery that have 4 or 5 dependent files this is a huge reduction of friction. For files like bootstrap which may have dozens of files (via nuget package), it is tremendously more helpful.
Code analysis rules that would go a long way in this:
- Class X is used only by Class Y - consider making class X a nested class
- Class X is used only by namespace Z - consider moving class X to namespace Z
- Namespace T is only used by namespace R - consider moving namespace T inside R
- File H is used only from file J, consider moving file H to J's directory
Its possible to define dependent files with VSCommands http://visualstudiogallery.msdn.microsoft.com/a83505c6-77b3-44a6-b53b-73d77cba84c8
Oh to collapse all those jQuery files into one node...
John Oliver commented
Have you tried the NestIn extension?
Florian Greinacher commented
+1 - In the meantime, the NestIn extension (http://visualstudiogallery.msdn.microsoft.com/9d6ef0ce-2bef-4a82-9a84-7718caa5bb45) works pretty well.
John Papa commented
Also, please allow us to rename nested files in solution explorer. Currently we have to do this by editing the csproj file in a text editor.