Using Visual Studio 2012, I’d like to create a C++ project folder called “Include Files”, which has the same characteristics as the well known folder “Header Files”. That is, the files in Include Files have a cpi extenson and will be parsed out for use with InteliSense, and also can be precompiled.
I’m able to create the folder but files within it aren’t parsed. I’ve tried setting the type to C++ Header file. Nothing seems to work. The files work fine when given a hpp extension and put into Header Files folder.
If it is anything like VS2010 this is done from the Tools/Options/Text-Editor dialog options. Under the tree item “File Extensions” you can add custom file extensions and have them treated with the editing experience of your choice.
To simulate your case I did the following:
Proceed as normal. Open any CPI file and it should now display with the same syntax highlighting, and IntelliSense options, as any c/cpp/h/hpp, etc file.
At least thats how I do it with my custom file extensions. It sounds like you have the filtering into subfolders the way you want it already.