Microsoft Visual Studio (2008) - filters in Solution Explorer

When working with C ++ projects, Solution Explorer has standard filters for header files, resource files, and source files. What I want to accomplish is essentially filters by folder.


Suppose the file structure was as follows:

  • ../Folder1/Source1.cpp
  • ../Folder1/Header1.h
  • ../Folder1/Source2.cpp
  • ../Folder1/Header2.h
  • ../AnotherFolder/Source1.cpp
  • ../AnotherFolder/Header1.h
  • ../AnotherFolder/Source2.cpp
  • ../AnotherFolder/Header2.h
  • ../SomeOtherSource.cpp

In the solution explorer, it will look like this:

  • Header Files / Header 1.h
  • Header Files / Header 1.h
  • Header Files / Header 2.h
  • Header Files / Header 2.h
  • Source Files /SomeOtherSource.cpp
  • Source Files / Source 1.cpp
  • Source Files / Source 1.cpp
  • Source Files / Source 2.cpp
  • Source Files / Source 2.cpp

And I would like it to look like this:

  • Header Files / AnotherFolder / Header 1.h
  • /AnotherFolder/Header 2.h
  • /1/Header1.h
  • /Folder 1/Header2.h
  • /AnotherFolder/Source 1.cpp
  • /AnotherFolder/Source 2.cpp
  • /1/1.cpp
  • /1/2.cpp
  • /SomeOtherSource.cpp

?

+5
4

. , , AFAIK VS .

+1

Visual Studio . , " ".

+1

?

+1

, , - . . " " . , . " ".

VS, , . " " . , . , . .

It is tiring, error prone and a waste of time. But since my project was built using an external make system, this is the only way that I can keep the project up to date and still get decent search and behavior viewing in Visual Studio. The cost of time pays off again in performance, but I still regret it.

0
source

All Articles