Conditional Compiler directives....

  • Thread starter Thread starter Sam Marrocco
  • Start date Start date
S

Sam Marrocco

Is there a way to prevent a conditional compiler directive from
"disabling" my #region/End Region statements? If I surround a block of
code that contains #region statements with an #if/#EndIf block, when the
#if is false, all code folding/formatting dissapears, making the code
very unreadable. Any suggestions?

--
==================================================================
Sam J. Marrocco
Sr. Visual Effects Artist/R&D
Travelling Pictures/GTN
Inferno, Flame, Houdini, Maya, All that cool stuff!
"The fact that no one understands you doesn't make you an artist."
==================================================================
 
Hello,

Sam Marrocco said:
Is there a way to prevent a conditional compiler directive from
"disabling" my #region/End Region statements? If I surround a block of
code that contains #region statements with an #if/#EndIf block, when the
#if is false, all code folding/formatting dissapears, making the code
very unreadable. Any suggestions?

I am able to reproduce that in VS .NET 2002 but I do not have a workaround.
I consider this to be a "bug". Even '#If...Then...#End If' blocks do not
show a "+" or "-" to toggle visibility.

Regards,
Herfried K. Wagner
 
Back
Top