C# outline 2012


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

(15) Review
Visual Studio
Download (23,131)
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Reviews (15)
Q and A (6)
Sign in to write a review
Sort by:

by Dumpen | April 27 2016

by tzengshinfu | January 25 2016

by gmonkman | November 27 2015

Does exactly what it says perfectly and provides functionality which should of been included 'in the box'.

by kayson | April 21 2015

by hdrenollet | October 07 2014

Works perfect! Just what I needed! This has been driving me crazy for almost 2 years and I never even thought to look for an extension, I just lived with it. Not anymore! Thanks so much!!

by fokytapia | September 03 2014

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?


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;


#region Class3

public class Class2

public class Class3


by C_baltz | June 17 2013

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

by lee.winter | June 12 2013

Fantastico :)

by MacScotsman | February 19 2013

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

by EricPower | 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.


Sign in to start a discussion

  • cannot install this extension
    7 Posts | Last post April 12, 2016
    • I have this on my work computer, but when I try installing it on my home one the VS installer fails: "the extension requires a version of the .NET framework that is not installed": any idea what that version is?
      This computer is a fresh install (Windows 7) so it probably only has 4.5, maybe I need to install an earlier one...
    • Hello,
      This extension is restricted to .NET Framework 4.5.
      Maybe you have 4.5.1 or something and it does not match this 4.5 version?
      Please check exact version of your .NET Framework installed: https://msdn.microsoft.com/en-us/library/hh925568%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    • Hi, I have Windows 10 and when I try to install .net framework 4.5 it doesn't allow me because I have .net 4.6, is there a workaround for this? I installed the plugin in VS2013 perfetly but I couldn't in VS2012.
    • Yes, this extension is sticked to .NET Framework 4.5 only. I will remove upper limit in a few days.
    • Fixed in version 1.0.2
    • how do i install this in visual studio 2012 express for desktop ?
    • Express editions does not support visual studio extensions, so you can not install it. I advise you to use Visual Studio Community edition (starting with 2013), if possible.
  • Any change to get this to work with VS 2012 Express
    4 Posts | Last post August 19, 2014
    • Can you allow this extension to be installed on VS12 Express Desktop?
      8/18/2014 8:58:38 AM - Searching for applicable products...
      8/18/2014 8:58:38 AM - Found installed product - Microsoft Visual Studio Express 2012 for Windows Desktop
      8/18/2014 8:58:38 AM - Found installed product - Global Location
      8/18/2014 8:58:38 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
         at VSIXInstaller.App.InitializeInstall()
         at System.Threading.Tasks.Task.InnerInvoke()
         at System.Threading.Tasks.Task.Execute()
    • AFAIK, Express versions does not support tools installation, but I will check it in an hour.
    • Ok, not in hour, but in a day :)
    • Confirmed, you can not install any tool to VS 2012 Express. You even will not see any search results in Extention and Updates for tools.
  • 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 ?
    • 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?
    • 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 :)