简体   繁体   English

在Visual Studio 2013 Express IDE中折叠括号

[英]Collapsing braces in Visual Studio 2013 Express IDE

I know there is an extension for this in Visual Studio . 我知道在Visual Studio中有一个扩展 However, is anyone aware of a similar extension or setting for Visual Studio Express editions? 但是,是否有人知道Visual Studio Express版本的类似扩展或设置?

Something that will allow me to collapse: 可以让我崩溃的东西:

     if (!string.IsNullOrEmpty(hotel.bg3))
            {
                colspan += 1;
                TableCell c3 = new TableCell();
                c3.Text = hotel.bg3.Replace(" ", "<br />");
                c3.Style.Value = "border-color: #333333;  border-width: 1pt; border-style: none none solid none; font-weight:bold;";
                c3.HorizontalAlign = HorizontalAlign.Center;
                row.Controls.Add(c3);
            }

to: 至:

     if (!string.IsNullOrEmpty(hotel.bg3))
            {...}

Thank you, 谢谢,

Mark 标记

Select the code you want to collapse and hit Ctrl + M and then Ctrl + H . 选择要折叠的代码,然后 Ctrl + M ,然后按Ctrl + H. You can also right click on the selection and select Outlining > Hide Selection . 您也可以右键单击选择,然后选择“ 大纲”>“隐藏选择” To unhide, hit Ctrl + M and then Ctrl + U or right click on the collapsed code and select Outlining > Stop Hiding Current . 要取消隐藏,请按Ctrl + M然后按Ctrl + U或右键单击折叠的代码,然后选择“ 大纲”>“停止隐藏当前”

It's also worth noting that Express editions of Visual Studio don't support extensions at all. 值得注意的是Visual Studio的Express版本根本不支持扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM