Collapsing Related Files in Visual Studio

In Visual Studio as most of you will have noticed that related file can be collapsed in to one. E.G.

  • Form1.cs
    • Form1.Designer.cs

I'm creating a DAL library and will be splitting partial classes in to several files such as:

  • SomeTableClass.cs
    • SomeTableClass.Generated.cs
    • SomeTableClass.SomethingElse.cs

Is there any way in Visual Studio to recognise these file are related to each other an create the collapsible effect?

Thanks

Tony

Answers


In my (VisualStudio 2005) system, they are stored in the registry under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Projects\{E24C65DC-7377-472B-9ABA-BC803B73C61A}\RelatedFiles

For VisualStudio 2008, change the \8.0\ to \9.0\

Note, however, that the GUID in the middle refers to the type of project (VB Console, C# Web, etc) it is. You may have to poke around to find the right one for you.


Need Your Help

SBT 0.13.7 and Scala 2.11.5 version compatibility issues

scala compilation compiler-errors sbt scala-2.11

Trying out sbt version 0.13.7 with scala version 2.11.5. Both are the newest right now. Do they work together? When I run sbt clean compile, it prints:

App crashes when Back button tapped while scrolling table view

objective-c ios uitableview crash

I present a modal table view within a navigation view with a Back button. The back button sends a message to the modal view's delegate to dismiss the modal view. If I scroll the table view and then...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.