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

Region Marker

Salvador Cabrera

|
8,077 installs
| (3) | Free
Generates regions on selected code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Region Marker

Region Marker allows you define code regions quickly.

Features

Mark code regions selecting a chunk of code and running the Region Marker: Mark Region command.

Tip: Invoking the command with no selection will create a region on the cursor position line.

Region Marker: Mark Region


Also, you can mark regions of code with a name by running the Region Marker: Mark Named Region command.

Region Marker: Mark Named Region

Out of the box supported languages

  • JavaScript
  • TypeScript
  • Ruby
  • C#
  • C
  • C++
  • Powershell
  • Visual Basic
  • JSX & TSX
  • SCSS
  • HTML

Support for other languages can be added by adding region limiters via settings region-marker.languages

Extension Settings

This extension contributes the following settings:

  • region-marker.languages: Customizes the region delimiters for languages
"region-marker.languages": {
     // Language id
    "typescript": {
        "start": "// my-custom-region ",
        "end": "// end-of-custom-region"
    }
}

Will make TypeScript regions to be like:

Custom delimiter example

  • region-marker.namedEndRegion (boolean): Adds the the name of the region to the end limiter.

Named end region example

It can be set at language level too:

"[typescript]": {
    "region-marker.namedEndRegion": true
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft