C# outline 2012

Free

Adds all braces {} outlining for C# editor. Based on JSEnhancements http://visualstudiogallery.msdn.microsoft.com/0696ad60-1c68-4b2a-9646-4b5f4f8f2e06

(9) Review
Visual Studio
2012
Download (12,027)
6/27/2013
1.0.1
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (9)
Q and A (4)
Sign in to write a review
Sort by:

by Heitor Paulo de Almeida | April 13 2014

Hi guys. I must be doing something wrong because it doesn't work. At all!
I don't have any other extension related to code formatting.

Any help?

Regards.

by RDF | April 10 2014

by Jia Pin | September 15 2013

by jeffrey0070 | August 06 2013


// It's very helpful! It would be nice to fix following bug.

using System;

public class Class1
{
    // Expand Region1 will cause crash when C# outline 2012 (version 1.0.1) installed and enabled
    // VS Ultimate 2012, Version 11.0.50727.1 RTMREL
    // With VS10x Code Map v3 (version 3.18) installed and enabled
    // reported by Jeffrey Wang (jeffrey0070@hotmail.com) on Aug 5, 2013

    #region Region1

    public int x;

    #endregion
}

#region Class3

public class Class2
{
}

public class Class3
{
}

#endregion

by C_baltz | June 17 2013

GREAT add-on - Thanks.
Outlining on case/break level would make it even better though.
C

by lee.winter | June 12 2013

Fantastico :)

by MacScotsman | February 19 2013

Excellent! This was driving me crazy. Thank you so much.

by NBCabal | October 03 2012

Works great! Even supports outlining @helper and @section code in my MVC4 views now. Thanks Skybladev2!

by WorkAByte | September 17 2012

YES!, i am back to normal in VS 2012 now!


Great simple extension, once i started using this is VS 2010 i almost regretted moving to 2012 before this was available.


THANK YOU!

Sign in to start a discussion


  • VS2013 please
    1 Posts | Last post October 09, 2013
    • have grown dependent on this in 12 but have to move to 13. Will buy beer! thx
  • Which is the key shortcut for doing the job ??
    2 Posts | Last post July 17, 2013
    • Hi,
      i apologize but i have installed the extension but i cannot reach to collapse nothing.
      Which is the shortkey ??
      What am i missing ?
      Thanks
      Stefano
    • Collapse/expand signs should appear after few seconds the document is loaded. You do not need to press anything.
      If it is not so, try to remove other extentions - they can affect this one.
  • Outliner disappears when opening a Razor View in MVC3?
    3 Posts | Last post April 18, 2013
    • Hi,
      
      Excellent utility.
      
      I am working with Razor Views in MVC3 using C# in VS2012. I notice that the "+" and "-" symbols appear when I open the view to start with then disappear.
      
      The View is simple ie
      
      @model MyData
                 
      <br />+++++++
      <br />Test
      <br />+++++++
      
      @{  
          foreach (var item in Model.Orders)
          {
           
          }
      }
      
      Also I noted that when I added the @{} the symbols only appeared when I reloaded the View, and then they disappeared :(
      
      Any ideas?
      
      Thanks.
      
      Sam.
    • Further info. There does seem to be some interference from the VD Outlining, so I had to stop the VS automatic outlining via "Edit/Outlining/Stop Outlining". It can still disappear, but it is better.
      
      
    • Hi.
      I don't have any partucular ideas, but think this is mostly Razor issue. I saw that outlining code works very well with cs, js and html files, but Razor files works worse, though the code exactly the same.
      Moreover, it is quite difficult to debug, so I don't think I will fix it in observable future, but if someone find a way to improve this extention I always welcome to update my code at github.
  • Somewhat duplicated functionality
    4 Posts | Last post October 03, 2012
    • But you can do it with any part of code out of the box by selecting it and tight click
      Maybe this extension is good for beginners
    • Hmm, you are right, but this requires
      1) Select desired code block
      2) Right click
      3) Move to Outlining
      4) Select Hide Selection
      
      And that's for every piece of code you want to toggle. My aim was just to click - or + and get the result.
    • I was hoping this extention would outline my @helper methods inside MVC cshtml files. It doesn't, can you make it MVC View aware? 
      
      @helper DisplayPostedDate(Models.Search.SearchResultItem item)
      {
          @Html.Raw("<time datetime='"+item.PostedDate.ToString("YYYY-MM-dd HH:mm")+"' " + 
                    "title='"+ item.PostedDate.ToShortDateString() + " " + item.PostedDate.ToShortTimeString() +"'>" + item.PostedDate.ToFriendlyPostedDateString() + "</time>")
      }
    • Done :)