Visual Studio Tip: Add Existing Directory

How many times have you wanted to add a directory that already exists to your project only to have to create the directory (and any subdirectories) and then Add Existing Files (one directory at a time)?

Annoying isn’t it? (Almost as annoying as someone who uses too many parentheses.)

Why, oh why, isn’t there an Add Existing Directory function?

Because it isn’t needed.

What? You’re crazy!

If you copy the directory and all its subdirectories into the project (into the directory you want them) with File Explorer (or xcopy from the command line), then go into VS and click the little Show All Files icon at the top of the Solution Explorer pane (second icon from the right for me), voila! There are the directories that you want to add.

Now just highlight the grey little directory and right click. Next pick the menu item that says “Include In Project”.

Bam! You just kicked it up a notch! (Man that’s a tired catch-phrase, isn’t it?)

Does that ever save some time.

Today I needed to include Tiny MCE in my scripts folder in jeffaBlogger (MVC blog engine I’m working on). It finally was annoying enough to go Google up a solution.

Thanks to NitriqBlog for that little life-saver.

Posted on 11/2/2009 12:36:00 AM by jeffa

Permalink | Comments (4) | Post RSSRSS comment feed |

Categories: .Net

Tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

November 2. 2009 15:02

I havenever thought on the issue. Hope you will provide some more information on it.

drug store us

November 13. 2009 06:42

Hey, great blog, but I don’t understand how to add your site in my rss reader. Can you Help me please?

Modern Warfare 2 Titles and Emblems List us

November 14. 2009 03:58

Thank you for the sensible critique. Me and my neighbor were just preparing to do some research about this. We got a grab a book from our local library but I think I learned more from this post. I am very glad to see such great information being shared freely out there.

Restaurant Recipes us

November 18. 2009 16:04

Great post, will be sharing with facebook. thanks

shock collars for dogs gb

Comments are closed