views:

35

answers:

1

The problem is the following: the codebase have many files with multiple blocks compiled conditionally for each of target platforms using the #if defined(...) directive. Since the typical programmer is working mainly on one of the platforms it is quite hard to read and navigate the code with these large blocks of inactive code blocks even if the code blocks are greyed out in the Visual Studio 2005 editor.

Have someone have an idea of a functionality for collapsing only the blocks of code which are not compiled but still present in the source file.

Thanks

A: 

In Emacs, you'd have http://www.emacswiki.org/emacs/HideIfDef at your disposal.

imz