Is there a way to fold (hide) C/C++ #ifdef's that are not defined in a project? In emacs there is a minor mode "folding" that has a hide-ifdefs/show-ifdefs command to auto fold sections of code embedded between the #ifdef and #endif.
It seems like TextMate should be able to do something very similar. If anyone knows of this, please let me know.
On 8 Apr 2008, at 19:57, dvlogic wrote:
Is there a way to fold (hide) C/C++ #ifdef's that are not defined in a project? [...]
You can add #ifdef/#endif to the folding patterns¹ but it cannot be smart about only folding those things which the C preprocessor will throw away.