Skip to content
| Marketplace
Sign in
Visual Studio>Tools>XML Regions
XML Regions

XML Regions

Tobias Hein

|
3,947 installs
| (3) | Free
Adds support for region comments in XML files.
Download

XML Regions

AppVeyor Visual Studio Marketplace Installs Donate

A Visual Studio extension that adds support for regions in XML files.

You can download the extension from the Visual Studio Marketplace or get the latest CI build. See the change log for the latest changes.

Features

  • Region outlining
  • Display region name in collapsed mode
  • Snippet for inserting regions

Outlining

To insert a region simply surround the required lines with the following XML comments.

<!-- #region -->
...
<!-- #endregion -->

Named regions are support by providing a name within the XML comment. Providing a name in the closing XML comment is optional.

<!-- #region My Region -->
...
<!-- #endregion My Region -->

Named region example

Unnamed region example

Snippet

A code snippet to quickly insert new regions is provided.

Snippet example 1

Snippet example 2

License

MIT

Icon by Michael Irigoyen (@mririgo)

Inspired by XAML Regions and JavaScriptRegions

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft