Skip to content

Add in settings to control Enum member Alignment - #5442

Merged
Andy Jordan (andyleejordan) merged 1 commit into
PowerShell:mainfrom
liamjpeters:AddEnumAlignmentSetting
Apr 3, 2026
Merged

Add in settings to control Enum member Alignment#5442
Andy Jordan (andyleejordan) merged 1 commit into
PowerShell:mainfrom
liamjpeters:AddEnumAlignmentSetting

Conversation

@liamjpeters

@liamjpeters Liam Peters (liamjpeters) commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

FYI Christoph Bergmeister (@bergmeister)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@andyleejordan
Andy Jordan (andyleejordan) merged commit 6f1abfd into PowerShell:main Apr 3, 2026
4 checks passed
@liamjpeters
Liam Peters (liamjpeters) deleted the AddEnumAlignmentSetting branch April 3, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Align Equal Sign on Enum Statement

2 participants