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.
- Region outlining
- Display region name in collapsed mode
- Snippet for inserting regions
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 -->
A code snippet to quickly insert new regions is provided.
- Add support for Visual Studio 2022
- Initial release
Icon by Michael Irigoyen (@mririgo)
Inspired by XAML Regions and JavaScriptRegions