Quick Tip: Add files to Visual Studio projects the easy way
Here's another in my series of "why didn't I know this feature was there".
While I was doing a technical review last week, I learned about a much easier way to add files to my Visual Studio projects.
In the solution explorer
- Select a project
- Click the "Show all files" button
- Right-click on the desired file (will be shown with an empty document icon)
- Click the "Include in project" menu item
This is so much easier than my usual technique (Add | Existing Item...).
Take care!
-- DK
[Edit: fix spelling]
Disclaimer(s):
This posting is provided "AS IS" with no warranties, and confers no rights.
Comments
Anonymous
December 18, 2007
PingBack from http://geeklectures.info/2007/12/18/quick-tip-add-files-to-visual-studio-projects-the-easy-way/Anonymous
December 20, 2007
Interesting! I didn't know about this one (as I many don't). Another use for this I've already found is checking through project folders for cruft that accumulates, like files that I thought I had deleted weeks ago.