Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExtra level of indentation within #region/#endregion tags #1562
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Support indenting an extra level inside regions, both with analyzing and auto-formatting, so it's possible to verify/auto-format code to look like this:
Currently the formatter will do this (because #region/#endregion isn't a token that merits an indent
After discussing in the PowerShell slack, I was pointed towards this area where the change would need to be made:
PSScriptAnalyzer/Rules/UseConsistentIndentation.cs
Line 146 in c78f5a6
I believe specifically this would need to be handled in the
defaultpart of the switch block.Per @bergmeister this would most likely get added as a configurable option for the
PSUseConsistentIndentationrule.I'm putting this here because I sort of volunteered to work on it, but it will be a very low priority for me, and also I don't want this information to disappear from the Slack buffer and be gone entirely.