[RESOLVED] VS 2010 - Settings question.
Please look at the image.
http://i.imgur.com/XfeDK.png
How do I make the try{} catch{} foreach{} blocks collapsible? I see this as a default in Notepad++ when I change the language to C#
I have tried changing the edit --> toggle outlining settings, but no luck.
Here's how that code snippet looks in Notepad++
http://i.imgur.com/RXdJS.png
I have Reshaper installed and I wonder if that's causing some settings to be changed.
Re: VS 2010 - Settings question.
You've never been able to collapse any block smaller that a method in VS as far as I'm aware. Maybe there's an extension that provides that functionality but I don't think that it exists by default.
Re: VS 2010 - Settings question.
If the feature is that important to you, use N++ ... but as jmc noted, you can't collapse anything smaller than a method in the VS Editor.
-tg
Re: VS 2010 - Settings question.
One option is to use regions, but I don't want to encroach on code checked in by my colleague.
I am pretty sure that there's something that will let me do this in VS2010. Perhaps it's an extension. I will have to find out.
Re: VS 2010 - Settings question.
can you use a #Region inside of a method? I've used it between methods, to group subs/functions/properties/private/public sections together, but never inside the sub itself.
-tg
Re: VS 2010 - Settings question.
I COULD do something like this:
http://i.imgur.com/t7E5N.png
Yes, you can have region blocks within a method.
Re: VS 2010 - Settings question.
Actually there is a free extension that's pretty cool called C# Outline and can be downloaded from the Visual Studio Gallery on the MSDN site. Here's a direct link though...
http://visualstudiogallery.msdn.micr...8-04b76e411ea8
Re: VS 2010 - Settings question.
Quote:
Originally Posted by
BJHuffine
I might give that a try myself. :thumb: