#Region #End Region issue

  • Thread starter Thread starter SAL
  • Start date Start date
S

SAL

When working in the Code-behind of ASP.net using VS2005, if you create a
#Region "SomeName" #End Region, and close VS2005 then reopen it all your
#Region #End Region collapses.

Is there a setting in VS2005 that prevents this from happening, because this
makes it difficult to work on projects that you want to come back to later
and what to leave a #Region expanded so you know where you left of or know
what you were working on before?

Thanks,
 
When working in the Code-behind of ASP.net using VS2005, if you create a
#Region "SomeName" #End Region, and close VS2005 then reopen it all your
#Region #End Region collapses.

Is there a setting in VS2005 that prevents this from happening, because this
makes it difficult to work on projects that you want to come back to later
and what to leave a #Region expanded so you know where you left of or know
what you were working on before?

Thanks,

These settings can be found in Edit - Outlining

You can switch the outlining off - Edit - Outlining - Stop Outlining
(alternative to Start Automatic Outlining)

Another way is to use the hot keys:

Toggle All Outlining Ctrl+M, Ctrl+L
 
Back
Top