Jump to content
  • Advertisement
Sign in to follow this  

Visual Studio 2010 C++ | Folder structures

This topic is 2042 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


I've set up an repository on BitBucket using GIT.

My problem is VSC++ 2010. It's making it's own folder structure I dislike totally.

I have my own intentions how it should be like.


Is there a way to change it? To have an own structure?


Thank you Techie


P.S.: I'm using Express Edition and NO I can't switch to VSC++ 12, I've Win Vista, though.

Share this post

Link to post
Share on other sites

Assuming you're talking about source folder structure, you can pretty much do anything you want. Create a project, delete whatever folders you don't like, and add your own. When you've got it how you like it, export the project as a template. Then you can use that structure in any new projects you create by selecting that template.

Share this post

Link to post
Share on other sites

I will show you how i do it.

  • First create a project, where "Create directory for solution" is ticked. 
  • Then remove the project from the solution, by right clicking in the Solution Explorer on the project.(It will not delete the project, only lose reference to it)
  • Now create a new directory for the project file, and call it what you want.
  • Copy the project files from the directory storing the project into your new folder.
  • Back in Visual Studio, add the existing project to the solution file, by File->Add->Existing Project.
  • Now you probably want to define the binary output folder.
  • This is done in the project properties. General tab->Output Directory. Remember to set both Debug and Release.
  • Also, set the path for your source folder, when you create new source files. This is done with the Location property in the add file window.
  • Git got a handy setting file called .gitignore. Use this file to ignore binaries, objects, and other temporary data generated by visual studio.
  • I often use the following ignore file, with some customization for Visual Studio: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore


That's it, customize as much as you want :)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!