【问题标题】:How can I fold #ifdef/#ifndef blocks in Emacs?如何在 Emacs 中折叠 #ifdef/#ifndef 块?
【发布时间】:2009-03-13 00:36:53
【问题描述】:

我想在 C 中隐藏 #ifdef 和 #ifndef 块。看来我需要使用折叠模式或大纲次要模式。

【问题讨论】:

    标签: c emacs


    【解决方案1】:

    hide-ifdef-mode 应该这样做。虽然我自己没有使用它,但打开它并使用以下命令阅读它的描述。它应该包含在 emacs 中。

    M-x hide-ifdef-mode
    C-h m
    

    【讨论】:

      【解决方案2】:

      您可以使用 Cedet 的折叠模式

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2023-03-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-04-14
        • 1970-01-01
        相关资源
        最近更新 更多