Skip to content

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

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

Closed
daviwil opened this issue Jan 19, 2017 · 0 comments
Closed

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

daviwil opened this issue Jan 19, 2017 · 0 comments
Assignees
Labels
Area-Code Formatting Issue-Enhancement A feature request (enhancement).
Milestone

Comments

@daviwil
Copy link
Contributor

daviwil commented Jan 19, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Code Formatting Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

2 participants