-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-AnsweredThe question is answered.The question is answered.
Description
Summary of the new feature/enhancement
This is really just a continuation of the issue #3020, as it didn't really provide a satisfactory answer. As far as I can understand it, the #9614 PR doesn't really offer a solution for this scenario. I'd like to the ability to take the following line:
$Ports | ForEach-Object -Process { NETSTAT.EXE -ano | findstr.exe :8080 | ForEach-Object -Process { ($_ -split '\s+')[-1] } | Sort-Object | Get-Unique | ForEach-Object -Process { taskkill.exe /F /PID $_ } }and convert it to:
$Ports |
ForEach-Object -Process {
NETSTAT.EXE -ano |
findstr.exe :8080 |
ForEach-Object -Process {
($_ -split '\s+')[-1]
} | Sort-Object |
Get-Unique |
ForEach-Object -Process {
taskkill.exe /F /PID $_
}
}I think this would go a long way in approving readability. At the very least, with the
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline"setting enabled, when I manually add the new line after each | and }, it will format the indentation correctly which is nice.
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-AnsweredThe question is answered.The question is answered.