Skip to content

Add in settings to control Enum member Alignment#5442

Open
liamjpeters wants to merge 1 commit intoPowerShell:mainfrom
liamjpeters:AddEnumAlignmentSetting
Open

Add in settings to control Enum member Alignment#5442
liamjpeters wants to merge 1 commit intoPowerShell:mainfrom
liamjpeters:AddEnumAlignmentSetting

Conversation

@liamjpeters
Copy link

@liamjpeters liamjpeters commented Mar 24, 2026

PR Summary

This PR exposes the new PSSA setting for controlling whether Enum formatting is enabled or disabled.

image

PSScriptAnalyzer 1.25.0 has been released (🎉) and contains PowerShell/PSScriptAnalyzer#2132 which added support for Enum formatting.

There is a corresponding PR in the PowerShellEditorServices which exposes the setting from the language server. PowerShell/PowerShellEditorServices#2271

Fixes #5138

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@liamjpeters
Copy link
Author

FYI @bergmeister

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Align Equal Sign on Enum Statement

1 participant