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

New formatting preset: OTBS with else on a new line #2045

Open
o-l-a-v opened this issue Dec 1, 2024 · 0 comments
Open

New formatting preset: OTBS with else on a new line #2045

o-l-a-v opened this issue Dec 1, 2024 · 0 comments

Comments

@o-l-a-v
Copy link

o-l-a-v commented Dec 1, 2024

Summary of the new feature

From the "There is no One True Brace Style" discussion it seems a lot of people, including me, likes OTBS with else on a new line.

In vscode-powershell one can't use a preset and override a setting it defines. Thus getting this code style in VSCode currently, one have to use:

{
  "powershell.codeFormatting.preset": "Custom"
}

then define all settings one by one.

Proposed technical implementation details (optional)

Add a new formatting preset for OTBS with else on a new line.

What is the latest version of PSScriptAnalyzer at the point of writing

v1.23.0

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

No branches or pull requests

1 participant