11
SlickEdit 2022 v27 Beta Discussion / Re: PowerShell indenting
« Last post by jporkkahtc on Today at 12:11:54 am »Another case that indents incorrectly - near the end (line 10) after the if block it indents a half level.
Removing the while or the if() fixes the problem.
Removing the while or the if() fixes the problem.
Code: [Select]
function DoSomething()
{
do {
Get-Stuff
} while(-not $OK)
if ($Stuff -eq $True) {
Write-Output "output"
}
Write-Output "Thing1" # Oddly indents extra here
Write-Output "Thing2"
return $Stuff
}