Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions (and other logic) within Regions should be indented #2034

Open
PeterHodges15 opened this issue Jun 5, 2023 · 0 comments
Open

Functions (and other logic) within Regions should be indented #2034

PeterHodges15 opened this issue Jun 5, 2023 · 0 comments
Labels
Area-Code Formatting Issue-Enhancement A feature request (enhancement).

Comments

@PeterHodges15
Copy link

PeterHodges15 commented Jun 5, 2023

Summary of the new feature / enhancement

Indentation should incoprorate Regions, if they exist. This logic is akin to why the contents of functions is indented.
Note: I have searched and found no support for this, and Found no better place to request this enhancement. I am using Visual Studio Code with the MS PowerShell Plugin. Language specific Editor settings do not support doing this: https://code.visualstudio.com/docs/getstarted/settings#_language-specific-editor-settings
___ is used instead of spaces because the View of the issue removed spaces
Preferred:

================

Expanded:


Region Main
___Function Main {
______ValidateSettings
Collapsed:


Region Main
___Function Main {
___}
___Function Function1 {
___}
___Function Function2 {
___}
Current:

Expanded:

Region Main
Function Main {
_____ValidateSettings
Collapsed:


Region Main

Function Main {

_____ValidateSettings
}
Function Function1 {
}
Function Function2 {
}

Proposed technical implementation details (optional)

The Default Auto-Formatting should indent Functions when they exist within Regions.
Not preferred, as this is user by user: provide language-specific-editor-settings to enable this

@ghost ghost added the Needs: Triage Maintainer attention needed! label Jun 5, 2023
@SydneyhSmith SydneyhSmith added Issue-Enhancement A feature request (enhancement). Area-Folding Area-Code Formatting and removed Needs: Triage Maintainer attention needed! Area-Folding labels Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Code Formatting Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

2 participants