Reputation: 11409
I don't know how this happened, but I have a project where header and source files are not nicely grouped in "Source Files" and "Header Files" directory in the project hierarchy.
Instead, they all sit directly under the project node.
I tried to manually add these folders, but their icons look different than the usual icons, so I guess that isn't the way to do it.
How could I restore these folders?
Upvotes: 4
Views: 396
Reputation: 184
I am afraid, the accepted answer is irrelevant. All you need to do is to select your messed up project in the solution explorer, then find and click the "Show All Files" button. When you pressed it the first time, your filters were gone. If you press it again, it goes back.
Upvotes: 2
Reputation: 1001
They aren't folders per se.
What you're looking for are filters, which help organize code without the need of folders.
They're commonly used for separating header files from implementation files.
Upvotes: 2