本文介紹了從 Intellisense 中隱藏 C++ 代碼塊的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
限時(shí)送ChatGPT賬號(hào)..
為了解決 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
我正在尋找這個(gè) 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
這篇關(guān)于從 Intellisense 中隱藏 C++ 代碼塊的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!