Somewhat inspired by this question about a graphical programming environment. I don\'t think that C++ or C# are really conducive to this type of environment, but perhaps there\
The Visual Studio IDE does this already, but with a different visualization - you can expand and contract nested blocks by clicking the +/- buttons on the left margin.