473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to disable regions in Visual Studio?

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
May 12 '06 #1
6 2357
Why don't you just remove the region statements themselves?

May 12 '06 #2
Also, with VS2005, you can right click in the editor and select
Outlining > Stop All Outlining.

Perhaps that will help

May 12 '06 #3
"Chris Dunaway" <du******@gmail.com> wrote in news:1147448464.671092.215750
@v46g2000cwv.googlegroups.com:
Also, with VS2005, you can right click in the editor and select
Outlining > Stop All Outlining.

Perhaps that will help


Thanks, it did.

May 15 '06 #4
Ikke <ik**@hier.com> wrote in news:Xn*****************@195.238.0.34:
"Chris Dunaway" <du******@gmail.com> wrote in
news:1147448464.671092.215750 @v46g2000cwv.googlegroups.com:
Also, with VS2005, you can right click in the editor and select
Outlining > Stop All Outlining.

Perhaps that will help


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!
May 15 '06 #5
"Ikke" <ik**@hier.com> wrote in message
news:Xn******************@195.238.0.34...
Ikke <ik**@hier.com> wrote in news:Xn*****************@195.238.0.34:
"Chris Dunaway" <du******@gmail.com> wrote in
news:1147448464.671092.215750 @v46g2000cwv.googlegroups.com:
Also, with VS2005, you can right click in the editor and select
Outlining > Stop All Outlining.

Perhaps that will help


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).


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.
May 15 '06 #6
"John Vottero" <JV******@mvpsi.com> wrote in
news:#l**************@TK2MSFTNGP02.phx.gbl:
"Ikke" <ik**@hier.com> wrote in message
news:Xn******************@195.238.0.34...
Ikke <ik**@hier.com> wrote in news:Xn*****************@195.238.0.34:
"Chris Dunaway" <du******@gmail.com> wrote in
news:1147448464.671092.215750 @v46g2000cwv.googlegroups.com:

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

Perhaps that will help

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).


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
May 16 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jason Heyes | last post by:
This debugger-related warning is flooding my output window. Example: c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning C4786:...
16
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
7
by: gaidar | last post by:
Hi, everybody, I'm just wondering if someone really need stuff like this: http://msdn2.microsoft.com/library/ms123401.aspx. If you answer yes than explain, please. Thanks! Gaidar
4
by: ChairShot | last post by:
I want to disable intellisense. I'm using vb.net 2003 with visual studio. I am a college stundent and it is slowing me down so I can't finish my work. dos-man
1
by: kwikgoal | last post by:
I am having a problem with selecting the DataList control from my toolbox. I added it to the toolbox, but when I go to the Windows Forms Tab, it shows up "greyed out". I can't left-click it or drag...
1
by: Herman Jones | last post by:
How do I keep Visual Studio 2005 from remembering which forms and code modules I last had open? Every time I reopen a project it tries to put me back exactly where I was when I left. This means...
2
by: badkarspiloten | last post by:
Hi there! I have just migrated from VS 2003 to VS 2005 and are getting lots of compile warnings when building my solution. Some of them I want to disable. I have managed to do this with my...
2
by: Jon Paal | last post by:
how can I turn off / disable JIT debugger ?
4
by: John Devlon | last post by:
Hi, Does anyone know how to disable a partical validor by code (vb.net) ? Thanx John
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.