Possible Duplicate:
Group files in Visual Studio
The problem is, that I want to group partial class files in a way in the Solution Explorer, that visual Studio displays a [+] in front of the filename which I than can expand to see all other dependant files.
But my classes are shown in two rows below each other:
> CustomerServiceDao.cs
> CustomerServiceDao.Query.cs
The result I want to have is something like that.
+ CustomerServiceDao.cs
> CustomerServiceDao.Query.cs
Is there any naming convention which I have to follow in order to show the partial files grouped?
EDIT
It works. That’s great. But are there any naming conventions? e.g. ascx does it by default …
If you open your
.csprojas a text file (or choose “Unload Project” from the context menu in Solution Explorer for the project, followed by “Edit myproject.csproj”) you can change it to show the relevant files in Solution Explorer in the style you wish.Look for:
And edit it to be as this:
There’s no way to do this directly within the Visual Studio editor, but given the extensibility model that VS2k10 provides, it probably won’t be long before someone produces something.
Update: The latest version of VSCommands claims to support doing this for you: