开发者

Changing Visual Studio default path for .cpp, .h file

开发者 https://www.devze.com 2023-01-16 10:48 出处:网络
I would like Visual Studio to automatically put my .h file in a folder /ProjectPath/includeand my src file in /P开发者_StackOverflow社区rojectPath/src. That way, if I use the \"Create class wizard\" f

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

0

精彩评论

暂无评论...
验证码 换一张
取 消