本文介紹了從 Intellisense 中隱藏 C++ 代碼塊的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
為了解決 MSVC++ 2010 中的一些 Intellisense 缺陷,我想從 Intellisense 隱藏"一些代碼塊,而不是編譯器.例如:
In order to work around some Intellisense deficiencies in MSVC++ 2010, I would like to "hide" some code block from Intellisense, but not from the compiler. For example:
#ifndef INTELLISENSE
void foo(); // compiled, but skipped by Intellisense
#endif
我正在尋找這個 INTELLISENSE
宏的確切名稱,如果這樣的宏存在的話;或做同樣事情的等效方法.
I'm looking for the exact name of this INTELLISENSE
macro, if such a macro exists; or an equivalent way to do the same thing.
推薦答案
適用于 VC++ 2010 的宏是 __INTELLISENSE__
,如本博客文章所述:IntelliSense 緩慢的故障排除技巧
The proper macro for VC++ 2010 is __INTELLISENSE__
, as described in this blog article: Troubleshooting Tips for IntelliSense Slowness
這篇關于從 Intellisense 中隱藏 C++ 代碼塊的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!