Changing Visual Studio default path for .cpp, .h file
I would like Visual Studio to automatically put my .h file in a folder /ProjectPath/include and my src file in /P开发者_StackOverflow社区rojectPath/src. That way, if I use the "Create class wizard" for instance, it would put the good path by default without me having to change the folder. Anyone know what setting I should change to get this behaviour when I add file ?
Thanks,
Jean-Philippe
You can right click on a folder in solution explorer and go to properties, you need to set the Filter property.
For example the Source Files
folder by default has a filter like this in a C++ project: cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
精彩评论