Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I enable the border around the selected scope in code in Visual Studio?

How can I Enable in VS8-10 the border/line that surround the codeblock where the cursor is? I have looked hard after this I kinda have to give up now. I have googled everything like: border, line, hightlight schope, and surround.

I know it's possible, I have used it before, but can't remember where to enable it.

e.g.:

if
{
    if(foo)
    {
        ________________________________________________________________
        I var s; <cursor here> // border around this and the next line I
        I var t; // border around this line too                        I
        ________________________________________________________________
    }
}
like image 537
radbyx Avatar asked Sep 15 '25 23:09

radbyx


1 Answers

Download "Ident Lines" in the Visual Studio Gallery or download Resharper.

For Resharper:

  1. Click "RESHARPER" in the toolbar
  2. Click "Options..."
  3. Select "Environment > Editor > Editor Appearance"
  4. Chech "Highlight matching delimiters when caret is"
  5. Check "at both sides"
  6. Check "outline"

Options

In this case, I selected the first brace after MsgBox_MouseDown. Bracing outlining

like image 137
Nicke Manarin Avatar answered Sep 19 '25 05:09

Nicke Manarin