C++ developers will rejoice when they see how to include files in a c++ project in Visual Studio 2010. Two great new features will surely save you valuable time: Intellisense and External Dependencies
Have you ever wished that you could open a file search dialog box straight from the line where you want to include a file? Imagine a small button with three dots right on a line in an open file… well, that’s not really what has been added, but what they’ve done is not bad.
Intellisense
We all know that there are includes that use the <> symbols, i.e. #include <vector> and others with quotes, i.e. #include “myinclude.h”, used with global includes and local project includes, respectfully. Now, Visual Studio 2010 will help you find files by listing them as you type. For example, if you type #include “, a list of files available in the current project will be shown as in the image below.

Typing #include and a quote
When you type #include < another list of files is shown to let you choose a global include file. In both cases, the physical directory of the file can be seen to the right of the file name.

Global include
Visual studio also shows all subdirectories as folders while typing. In the following example I want to include some boost [
http://www.boost.org] include files. I’ve defined the directory c:\boost_1_44_0 as an include path so that all other subdirectories will be recognized as include paths. The full path to the include file that I want is c:\boost_1_44_0\boost\filesystem\v3. In Visual Studio, I’ve started to type part of the full directory, out to “filesystem”. From there, we see that there are three subdirectories (detail, v2 and v3) as well as several .hpp files in the boost/filesystem/ directory.
External Dependencies
A new filter (looks like a folder in Solution Explorer) is a available called External Dependencies. This new folder gives you a bird’s eye view of all included files in the solution. This also includes all included files of your includes, which means that if you have many include files that include files, it may be difficult to use. Try adding <Windows.h> to a solution.

External Dependencies folder in Solution Explorer