Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Region WrapperNew to Visual Studio Code? Get it now.
Region Wrapper

Region Wrapper

swssr

|
1,953 installs
| (1) | Free
A VS Code extension to easily wrap code blocks in regions, with a view to display them in the Activity Bar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Region Folding Extension for Visual Studio Code

This extension for Visual Studio Code allows users to easily wrap blocks of code with #region and #endregion comments, providing better organization and readability. It also displays a tree view of the regions in each file.

Features

  • Easily wrap selected code in #region and #endregion comments
  • Assign a custom name to each region
  • View a list of regions in each file in the Activity Bar

Usage

  1. Select a block of code that you want to wrap in a region.
  2. Right-click and select "Wrap with Region", or use the Command Palette to run the "Wrap with Region" command.
  3. Enter a name for the region in the input box.
  4. The selected code will be wrapped in #region and #endregion comments.

The tree view in the Activity Bar will automatically update to reflect the current regions in each file.

Known Issues

Please report any bugs or feature requests in the GitHub issues for this project.

Release Notes

1.0.0

Initial release of Region Folding Extension for VS Code.

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