Making Visual Studio Show Sections of Code?

Hi,

Is it possible to visually show the space for open and closing brackets {}?

I am looking for something to make Visual Studio show and match the opening and closing brackets something to the tune of this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
while(something > somethingElse)
{
|  thisDoesThat;
|  thatDoesThis;
|  somethingOrOther;
|  randomStuff;
|  
|  if(stuffHappens)
|  {
|  | doThat;
|  | andThis;
|  | alsoThis;
|  }
|
|
}



Basically something that will help me visually separate which sections are linked together with {}
Is it possible to visually show the space for open and closing brackets {}?

There's nothing built into Visual Studio, but there is this addon (and might be others.)

AllMargins 2012
http://visualstudiogallery.msdn.microsoft.com/43bc4a3a-0182-4c36-8159-a0a4cdfd04bd

The catch is that while this addon is free, you can only use it (or any other addon) with a retail version of Visual Studio. If you're using the Express version, then you're out of luck.

Andy
In VS, if you put the cursor immediately before any bracket, it will highlight that bracket and the matching bracket. That also works for parentheses.
This is completely overkill and will make the code look horrible, but you could use the region stuff if you really wanted to be able to collapse/expand code sections:
http://msdn.microsoft.com/en-us/library/b6xkz944.aspx
Topic archived. No new replies allowed.