Skip to content

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

Open
@o-l-a-v

Description

@o-l-a-v

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions