Skip to content

Code formatter should keep indentation for multi-line pipelines #448

Closed
@daviwil

Description

@daviwil

Currently for a block of code like this:

Get-Process |
    Where WS -gt 500mb |
    Format-Table VM, WS, CPU, ID, ProcessName

the code formatter gives this output:

Get-Process |
Where WS -gt 500mb |
Format-Table VM, WS, CPU, ID, ProcessName

It should at least retain the proper indentation or fix it if we notice that the following lines in the pipeline are indented.

/cc @Jaykul

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions