Skip to content

Option to indent code in a #region  #1792

Open
@WillyMoselhy

Description

@WillyMoselhy

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.

Summary

When writing code, I depend heavily on regions to keep things clean. Sometimes even nested regions. I would love it if we have the option to indent the code in a region to easily find where a region starts and ends.

#region: Hello World!
Write-Host 'Hello World!
#endregion

Should be (optinally)

#region: Hello World!
    Write-Host 'Hello World!
#endregion

Would be even cooler if the indent is adjustable to 1 or 2 spaces instead of 4

Proposed Design

Add option in the formatter to indent regions and specifying by how many spaces.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions