是否可以在Emacs中顯示當前的#ifdef塊(例如在模式行中)?在Emacs中顯示包含#ifdef塊
例如:
#ifdef A
... | #cursor position num. 1
#ifdef !B & C
...
#else /* !B & C */
foo(); | #cursor position num. 2
#endif /* !B & C */
#endif /* A */
應該在模式行顯示A
,如果我我已經使用隱藏-IF-除霜模式放到位1 光標並顯示A & !(!B & C)
在位置2 。但有時我需要使用所有#ifdef塊。
不是答案,但是用'C-C C-u'跳到最近的封閉'#ifdef'是非常有用的。然後你可以使用'C-u C-'返回你所在的位置。 –