I've created some classes in VS and I can't move them in the folder I want them to be. they are in the same folder of the project, at the root. But I'd like them to be in a "source" folder.
If I move them from the solution explorer they don't appear at the same place in the Windows explorer. And if I move them from the Windows explorer, or from the Folder view of VS, I can't build anymore because the files are not found.
Moreover, the main.cpp file happens to be outside of the project folder, it appears in the solution explorer but not in the folder view (in VS). The Folder View takes the folder where the project is as root. I can't see what's before that root.
It sounds messy, I know, but that's how it was when I downloaded the project.
On the left image, you can see all my created classes are in the root, I want them to be in the source folder.
On the right image you can see that main.cpp is in the solution explorer, but not in the Folder View (I can expand all the folders if you'd like to see, it's not inside.)
To conclude :
How can I move my classes into the Source folder?
And how can I move the main.cpp file inside of my project folder, ideally in the source folder as well?
I think the easiest way to achieve what you are looking for is to remove the files you want to move from the solution (right click remove). Then you can move the files to where you want them in the windows explorer, and then add them back into the solution in the right folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With