Skip to content

Stylish Regions

Customize folded code regions with beautiful separators and title blocks

Stylish Regions transforms your folded code regions into beautifully styled visual separators, making it easier to organize and navigate large files.

With customizable styles, colors, fonts, and positioning options, you can create a personalized code organization system that matches your workflow.

When working with large files, code regions (//region and //endregion comments) help organize related code blocks. By default, these regions collapse into folded text styles.

Stylish Regions enhances them with:

  • Three distinct separator styles (Wavy, Line, Stripe)
  • Customizable separator and text colors
  • Adjustable fonts and sizes
  • Positioned title blocks with rounded corners
  • Auto-generated colors from region names

You can configure Stylish Regions by navigating to Settings → Appearance → Material Theme UI → Regions.

Regions Settings
Regions Settings

Choose from three visual styles that determine how the collapsed region separator line appears:

The default style features a smooth, undulating wave pattern that provides a soft, organic look. Perfect for a modern, friendly aesthetic.

Wavy Separator Style
Wavy Separator Style

A clean, straight horizontal line that offers a minimalist appearance. Ideal for those who prefer sharp, crisp visual boundaries.

Line Separator Style
Line Separator Style

A thick, bold stripe that makes regions stand out prominently. Great for high-contrast organization and quick visual scanning.

Stripe Separator Style
Stripe Separator Style

Customize the color of the separator line itself. By default, regions use a teal accent color (#009688), but you can choose any color that fits your theme or organizational system.

Enable Custom Color and select your preferred color from the color picker. When disabled, the separator uses the theme’s default accent color.

Custom Separator Color
Custom Separator Color

The region title text color can also be customized independently from the separator. By default, it uses a light gray color (#B0BEC5), but you can set it to any color for better readability or visual hierarchy.

This is particularly useful when you want the title to stand out more prominently or match specific branding colors.

Custom Text Color
Custom Text Color

Choose a custom font family for your region titles. The default is Roboto, but you can select from any font installed on your system.

Adjust the region title font size between 8px and 24px (default is 14px). Larger sizes make regions more prominent and easier to spot when scrolling, while smaller sizes provide a more subtle organizational cue.

Font Family and Size Customization
Font Family and Size Customization

Control the roundedness of the region title block’s corners with a radius range of 0-32px (default is 8px):

Examples:

  • 0px: Sharp, rectangular corners for a traditional look
  • 8px: Softly rounded corners (default, matches Material Design)
  • 16px+: Heavily rounded corners for a pill-shaped appearance
Custom Corner Radius
Custom Corner Radius

You can also choose where to place the Region Block in the line. Options are:

  • Left: Aligned to the left edge of the editor
  • Center: Centered in the editor (default)
  • Right: Aligned to the right edge of the editor

When the block position is set to Left or Right, you can add an offset distance (0-500px, default is 0px) from the edge. This creates breathing room or aligns the block with specific indentation levels in your code.

For example, setting a left position with a 100px offset moves the title block 100 pixels away from the left edge, making it align with your code’s indentation.

Left Align with Offset
Left Align with Offset
Right Align with Offset
Right Align with Offset

Lastly, the Generate Block Color feature automatically generates a background color for each region’s title block based on its name. Similarly to the Project Banner, it gives each region a unique color, making it easier to visually distinguish between different regions in your code.

Benefits:

  • Visual Grouping: Regions with the same name across different files get the same color
  • Quick Identification: Instantly recognize region types by color
  • No Manual Setup: Colors are generated automatically

This is especially useful when you have standard region names like “Constants,” “Helpers,” or “API Calls” that appear across multiple files.

Auto-Generated Block Colors
Auto-Generated Block Colors

Most customization options require an Advanced license:

  • Separator styles (Wavy, Line, Stripe)
  • Custom separator and text colors
  • Font family and size customization
  • Title block corner radius, position, and offset
  • Auto-generated block colors

The basic enable/disable toggle is available to all users without a license. This allows you to try the default Wavy style before upgrading.

Learn more about licensing.