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

不问归期 提交于 2019-12-13 14:27:28

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/3718445/changing-visual-studio-default-path-for-cpp-h-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!