How to disable regions in Visual Studio?

I

Ikke

Hi everybody,

Can somebody tell me how to disable regions in Visual Studio 2005?

I've already told VS not to collapse code to regions in the settings, but
each time I open a new (existing) code file from a project, the regions are
there again (and collapsed).

This is really beginning to annoy me, so I'd really like to find a solution
to get rid of these regions. Is there another setting I've missed?

Thanks very much!

Ikke
 
C

Chris Dunaway

Also, with VS2005, you can right click in the editor and select
Outlining > Stop All Outlining.

Perhaps that will help
 
I

Ikke

Ikke said:
Thanks, it did.

Or to put it in other words, it did not :)

When I open a file, the regions are there again. Is there a way to get rid
of those annoying things once and for all?

Its VS2003, by the way (I have both and was running the wrong one).

Thanks!
 
J

John Vottero

Ikke said:
Or to put it in other words, it did not :)

When I open a file, the regions are there again. Is there a way to get rid
of those annoying things once and for all?

Its VS2003, by the way (I have both and was running the wrong one).

Tools->Options

Then pick Text Editor, C#, Advanced and uncheck "Enter outlining mode when
files open" and maybe "Surround generated code with #region".

This is from VS2005 but, VS2003 has a similar (if not identical) setting.
 
I

Ikke

Tools->Options

Then pick Text Editor, C#, Advanced and uncheck "Enter outlining mode
when files open" and maybe "Surround generated code with #region".

This is from VS2005 but, VS2003 has a similar (if not identical)
setting.

Nope. I've changed those settings for C# and VB, but I still get those
annoying regions when I open an existing file.

Is there another editor perhaps, one that does not mess with the code I
write?

Thanks,

Ikke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top