Howto display partial class files as child items in solution tree

Hi,

I'm splitting up some of my classes into separate files because these classes are partially generated. An example of the structure is:
- MyClass.cs
- MyClass.Generated.cs
- MyClass.Constants.cs

Now, in the solution explorer, I see three items for this one class, while I would like to see the two latter files as child elements of the first one, like this:
- MyClass.cs
- MyClass.Generated.cs
- MyClass.Constants.cs
just like we see with the designer.cs and resx files for forms.

As I have quite a few of these classes, having several files listed at the same level for one single class makes it unwieldy.

Could anyone tell me how to get them indented in the solution explorer?

Cheers,
Phil

[755 byte] By [beefeater] at [2007-12-24]
# 1
Solution can be found athttp://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=642782&SiteID=1.

Thanks Anson

beefeater at 2007-10-7 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...

Visual Studio

Site Classified