Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collapsing braces in Visual Studio 2013 Express IDE

I know there is an extension for this in Visual Studio. However, is anyone aware of a similar extension or setting for Visual Studio Express editions?

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

like image 537
Mark Avatar asked Feb 14 '23 16:02

Mark


1 Answers

Select the code you want to collapse and hit Ctrl+M and then 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.

It's also worth noting that Express editions of Visual Studio don't support extensions at all.

like image 122
Nacimota Avatar answered Feb 16 '23 08:02

Nacimota