XAML Regions

Free

Provides the ability to create regions in XML and XAML code.

(56) Review
Visual Studio
2013, 2012, 2010
Download (25,122)
9/13/2013
0.8
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (56)
Q and A (14)
Sign in to write a review
Sort by:

by Brandon C Poole | July 15 2014

Very helpful! Can't believe this isn't standard.

by Heck, Waldemar | June 04 2014

Thank you very much.

This should take over Microsoft in the next version in the standard.

by chriga | May 22 2014

This is something that is definitely missing in VS.

by Esccriru | May 06 2014

Amazing extension, its usefull to collapse all the lines about styles and templates. Thanks!

by chostelet | May 02 2014

Magnifique !

by panthernet | April 29 2014

THAT IS AWESOME! Microsoft should've done this a long ago! Now it is soooo easy to build templates storage in one file! THANK YOU so much!

by Sameer Vijaykar | April 16 2014

Simple and useful.

by Shicheng.Wang | February 13 2014

Can't be installed in Microsoft Visual Studio Express 2012 for Windows Phone & Microsoft Visual Studio Express 2013 for Windows

by alexerax | December 10 2013

by Michael Albaladejo | November 28 2013

Very nice. I love it. Thanks.

by mark-cirrus | November 22 2013

by maxima | October 22 2013

nice

by Bobby Rodrigue | September 18 2013

Thanks!

by Jonatan V Dutra | September 10 2013

Great extension. Exactly what I need. Thank you!

by Jebarson J | August 26 2013

Great tool. Would you consider adding code snippet for this

eg) <!--region

Jacob Johnston September 18 2013
| Edit |
Delete

I would love to add snippets. Unfortunately, Microsoft's VSIX extension format doesn't support installing snippets. If I were to add those, I'd have to create an external installer for the extension :-(

by Bdijk | July 12 2013

by Andrei Pi | July 06 2013

It works and it's very useful. Thanks!

by Ali.Alikhani | June 19 2013

Nice Thanks :)

by MemeDeveloper | June 10 2013

Fantastic ! Makes such a difference in large XML file. Much appreciated, so simple but sooo handy ! thanks.

by Damien DeCremer | May 08 2013

Fantastic and provides a collapsible region, as expected. It's a great addition to organize my code much better now.

Improving it to auto-complete the closing section would be a great feature, as well as having open/close tag pair-matching when the cursor is within one or the other.

1 - 20 of 56 Items   
Sign in to start a discussion


  • Hotkey support missing?
    1 Posts | Last post July 01, 2014
    • With regular Visual Studio regions you can select them and press "Ctrl+]" (control + right square bracket) to switch the cursor location between the #region and the #endregion (just like how it works for "{" and "}", etc.).
      
      The extension seems to work except that it lacks this feature.
      
      Is it something that could be easily added?
  • Commands
    3 Posts | Last post June 13, 2014
    • Any plans to add a few related commands? It would be very useful to be able to collapse all regions or the deepest level of regions. Sadly the removal of macros from VS2012+ prevents me scripting up something!
      
      Essentially I'd like an easy way of resetting the file to the default open state where only your regions are collapsed. The standard collapse functionality in VS isn't much use because it doesn't differentiate and collapses everything.
    • (Or to release source? :)
    • I've just updated my free "Menees VS Tools 2013" extension (for VS 2013) to support its CollapseAllRegions and ExpandAllRegions commands when the XAML Regions extension (or the Web Essentials extension) is installed and enabled.
  • Not Supported on VS13 for Desktop Express Edition
    1 Posts | Last post April 22, 2014
    • Why I can't install your extension on VS13 Express Edition for Desktop?
      
      Thanks.
      
      Jymmy097
  • ArgumentOutOfRangeException
    6 Posts | Last post September 14, 2013
    • fyi, i'm getting an error message box popup occasionally while editing Xaml that has Xaml Regions on it. It just says its logged the error to the Activity Log. The entry looks like:
      
      <entry>
          <record>882</record>
          <time>2013/09/04 03:10:40.195</time>
          <type>Error</type>
          <source>Editor or Editor Extension</source>
          <description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.&#x000D;&#x000A;Parameter name: span&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot, Span span)&#x000D;&#x000A;   at XAMLRegions.RegionOutlineTagger.RegionSearch_RegionsChanged(Object sender, EventArgs e)&#x000D;&#x000A;   at XAMLRegions.RegionSearch.Parse()&#x000D;&#x000A;   at XAMLRegions.RegionSearch.buffer_Changed(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
        </entry>
      
      I'm guessing cos it mentions XAMLRegions it might be caused by it.
      
      
      Cheers
    • Hmmmm, thanks for the report. I'll look into it and see if I can squash that bug.
    • Same problem here. Using XAML regions 0.7 on VS2012. Occurs now and then when editing XAML files. Activity log says:
        <entry>
          <record>664</record>
          <time>2013/09/09 07:42:49.080</time>
          <type>Error</type>
          <source>Editor or Editor Extension</source>
          <description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.&#x000D;&#x000A;Parameter name: span&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot, Span span)&#x000D;&#x000A;   at XAMLRegions.RegionOutlineTagger.RegionSearch_RegionsChanged(Object sender, EventArgs e)&#x000D;&#x000A;   at XAMLRegions.RegionSearch.Parse()&#x000D;&#x000A;   at XAMLRegions.RegionSearch.buffer_Changed(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
        </entry> 
    • me too, same problem. Using XAML regions 0.7 on VS2012
      
      <entry>
          <record>644</record>
          <time>2013/09/12 11:57:38.215</time>
          <type>Error</type>
          <source>Editor or Editor Extension</source>
          <description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.&#x000D;&#x000A;Parameter name: span&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot, Span span)&#x000D;&#x000A;   at XAMLRegions.RegionOutlineTagger.RegionSearch_RegionsChanged(Object sender, EventArgs e)&#x000D;&#x000A;   at XAMLRegions.RegionSearch.Parse()&#x000D;&#x000A;   at XAMLRegions.RegionSearch.buffer_Changed(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
        </entry>
    • Hey guys, sorry about those annoying messages. I've just released 0.8, which should address that issue. Let me know if you're still getting these errors.
    • Nice work. Thanks!
  • VS2013?
    7 Posts | Last post July 11, 2013
    • Hi,
      
      Are you intending to update this for VS2013 at some point?
    • Yep, started working on it last week. I'm also adding some custom coloring to the region elements (so they don't look exactly like comments) for the next update.
    • Great, thanks.
    • 2013 support is in, but my color stuff is a bit more complicated, so I'm holding off for right now on that part.
    • Yup, works as it did in 2012. Thanks again.
    • Can't update to 0.6: "Requires a version of the .NET framework that is not installed"  in vs2010 (sans 4.5)
    • This is an artificial limitation I'll fix today. The assembly itself targets 4.0, but the manifest is marked as requiring 4.5. My apologies.
  • Using regions with Resharper
    1 Posts | Last post June 01, 2013
    • Hi, great tool !
      
      Here's how to use it with Resharper regioning context-menu :
      
      Open Resharper menu on Visual Studio
        -> Templates Explorer 
           -> Surround Templates 
              -> XAML 
                 -> New Template
      
      Describe your template and paste this code :
      
      <!-- Region $END$ --> 
      $SELECTION$ 
      <!-- EndRegion -->
      
  • Doesn't works with VS2012 Update 2
    2 Posts | Last post April 11, 2013
    • Hi, I have updated the Visual Studio with the new update 2.
      
      After this update the extension doesn't works.
      
      Can you provide a solution?
      
      Best regards.
    • Sorry! My previous post was wrong!
      
      Works all fine!
      Thanks!
      
      My solution:
      - I disabled the extension
      - reboot the VS
      - enable the extension
      - reboot VS
      
      after these operations the extension works correctly
  • Advanced option
    1 Posts | Last post December 14, 2012
    • Hi,
      
      Thank you very much for this extensions, it's very useful !! :)
      I have one question : This is possible to add a button to 'expand/collapse' all of the regions, please ? It would be very useful !!
      
      Best regards.
  • Colour Differnce for <!--Region-->Tag
    1 Posts | Last post December 06, 2012
    • Thanks for the plug-in.
      Current Region tag appears as a normal comment's green color. If you differentiate with some other color It could be easily understandable.  
  • VS 2012 Support
    2 Posts | Last post August 29, 2012
    • Jacob - this is an fab extension and i just upgraded to VS 2012 and it doesnt seem to work. Should that be the case?
    • Nope - that should not be the case! I updated it in March to work with 2012, and have been running it with the RTM 2012 for a few weeks now on my system. All work just fine.
      
      That said, it is possible for other plugins to interfere with my plugin. One reviewer said that Visual Studio Commands does this. Try running with your other 3rd-party Extensions disabled and see if that changes anything. If that doesn't work, you may try sending me a test file where the regioning isn't working for you, I might be able to debug it! 
1 - 10 of 14 Items