views:

39

answers:

1

Hi, I would like Visual Studio to automatically put my .h file in a folder /ProjectPath/include and my src file in /ProjectPath/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

A: 

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

Brian R. Bondy
I didn't know that. This seems to only work with Visual Studio filters though (not physical folder)? Unless there is a way to add a physical folder as a filter in Visual Studio ?
Jean-Philippe Jodoin
Ya that's only for the folders in the solution.
Brian R. Bondy