tmighty
tmighty

Reputation: 11409

Restoring "Source Files" and "Header Files" folders

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.

enter image description here

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

Answers (2)

dmitrycello
dmitrycello

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.

enter image description here

Upvotes: 2

babu646
babu646

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.

Adding a filter

Upvotes: 2

Related Questions