[英]How to include an header automatically in all cpp files in visual studio?
我想在我的項目的所有cpp文件中包含標頭,而無需在Visual Studio中手動更改所有cpp文件。 有人可以幫我嗎?
我需要此功能,因為我將使用Visual Leaks Detector,並且需要在大型項目的所有cpp文件中包括“ vld.h”。
我知道我可以使用gcc / make做到這一點( 有什么方法可以在所有C或CPP文件中自動包含頭文件嗎? )
有/FI[name]
: 強制包含 (對於gcc相當於-include
)
Configuration properties / C/C++ / Advanced / Forced Include
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.