简体   繁体   中英

How to include an header automatically in all cpp files in visual studio?

I would like to include an header in all cpp files of my project without to change all cpp files manually in visual studio. Does someone can help me ?

I need this feature cuz I will use Visual Leaks Detector and I need to include "vld.h" in all cpp files of a huge project.

I know that I can do that with gcc/make ( Is there any way to include a header file in all C or CPP file automatically? )

/FI[name]强制包含 (对于gcc相当于-include
Configuration properties / C/C++ / Advanced / Forced Include

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM