IntelliSense in VC + + 2010: unable to open source file “StdAfx. H”

Refer to
Problems such as unable to find files can be solved with this method, is the path problem. Similar problems may occur when a VC ++2008 project is transferred to VC ++2010.
Add $(projectDir) to the Project Properties = Configuration Properties = C/C++ = General = Additional Includes directory
See below

Read More: