如何在Visual Studio中的代码中启用所选范围周围的边框?

rad*_*byx 3 c# resharper visual-studio-2010 visual-studio-2008 visual-studio

如何在VS8-10中启用光标所在的代码块周围的边框/线?在此之后我很努力,我现在必须放弃.我用google搜索了所有内容:border,line,hightlight schope和surround.

我知道这是可能的,我以前使用过它,但不记得在哪里启用它.

例如:

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
        ________________________________________________________________
    }
}
Run Code Online (Sandbox Code Playgroud)

Nic*_*rin 6

在Visual Studio库中下载"Ident Lines"或下载Resharper.

对于Resharper:

  1. 单击工具栏中的"RESHARPER"
  2. 点击"选项..."
  3. 选择"环境>编辑器>编辑器外观"
  4. Chech"当插入符号时突出显示匹配的分隔符"
  5. 检查"两侧"
  6. 检查"大纲"

选项

在这种情况下,我选择了第一个支撑MsgBox_MouseDown. 支持概述