PowerShell-Beautifier
PowerShell-Beautifier copied to clipboard
$i --
$i--
is formatted to $i --
with the reformatter.
Example:
for ($i = 99; $i -gt 1; $i--) {
Write-Output -InputObject "$i bottles of beer on the wall, $i bottles of beer."
Write-Output -InputObject "Take one down and pass it around, $($i - 1) bottles of beer on the wall."
}
is reformatted to:
for ($i = 99; $i -gt 1; $i --) {
Write-Output -InputObject "$i bottles of beer on the wall, $i bottles of beer."
Write-Output -InputObject "Take one down and pass it around, $($i - 1) bottles of beer on the wall."
}
On the other hand, $i++
is still $i++
after reformatting.
Is this a bug or a feature?