How can I reset # ifdef / # ifndef blocks in Emacs?

I want to hide the #ifdef and #ifndef block blocks in C. It looks like I will need to use Folding mode or Outline helper mode.

+6
c emacs
source share
2 answers

hide-ifdef-mode should do something similar. I did not use it myself, but turned it on and read its description using the commands below. It must be included in emacs.

Mx hide-ifdef-mode Ch m 
+7
source share

You can use the folding mode from Cedet

+1
source share

All Articles