Next: How do I repeat a command as many times as possible?, Previous: How do I show which parenthesis matches the one I’m looking at?, Up: Common requests [Contents][Index]
M-x hide-ifdef-mode. (This is a minor mode.) You might also want
to investigate cpp.el, which is distributed with Emacs.