Visual Studio Tip: Adding Existing Folders (and files) to a Visual Studio Project 1


So for a while I’ve been manually adding items and it finally occurred to me that there must be a faster way to add whole folders to a Visual Studio project.  Recently I came across this blog entry – it’s rather obvious and it works.  Can’t believe I didn’t know this beforehand.

image

   Visual Studio – Add Existing Folder

   “I’ve found a fix to a common annoyance I’ve had in Visual Studio. I always wanted an
   option called "Add Existing Folder" to right next to "Add Existing Item" in the "Add"
   context menu item in the solution explorer. It was always a long drawn out process for
   me to add a folder that already existed (renaming the folder I wanted to add, creating
   the an empty folder with the desired name through visual studio, then adding all of the
   files back into the newly created folder).
   Instead what you can do is hit the "Show All Files" tool strip button at the top of the
   solution explorer, then right click on the folder you want to add and hit "Include In
   Project".  Pretty trivial. Its amazing how long you can use a product and not know about
   all of its features.”

image image


About Rob Sanders

IT Professional and TOGAF 9 certified architect with nearly two decades of industry experience, 18 years in commercial software development and 11 years in IT consulting. Check out the "About Rob" page for more information.


Leave a comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

One thought on “Visual Studio Tip: Adding Existing Folders (and files) to a Visual Studio Project