更改.cpp,.h文件的Visual Studio默认路径 [英] Changing Visual Studio default path for .cpp, .h file
问题描述
我想Visual Studio自动将我的.h文件放在一个文件夹/ ProjectPath / include和我的src文件在/ ProjectPath / src。这样,如果我使用创建类向导,例如,它将默认没有我更改文件夹的好路径。
感谢,
Jean- Philippe
您可以右键单击解决方案资源管理器中的文件夹,然后转到属性,需要设置Filter属性。 / p>
例如,默认情况下,源文件
文件夹在C ++项目中有一个这样的过滤器: cpp; c; cc; cxx; def; odl; idl; hpj; bat; asm; asmx
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
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
这篇关于更改.cpp,.h文件的Visual Studio默认路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!