Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@o-l-a-v

Description

@o-l-a-v
Issue body actions

Edit: Blocked, see #2045 (comment).

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.