Open BenedekFarkas opened 1 year ago
We don't align assignments in any other language we code in, so what would be the incentive to do it for PS?
Readability. In C#, this mostly would mostly apply to object/collection initialization, but it's not that frequent (I don't know if there's an option to do the same, but I haven't checked either). For PS scripts, this is very common - multiple instances (with up to 6-8 parameters) in a script of even just a couple dozen lines due to parameter splatting.
Factored out from #16.
PSAlignAssignmentStatement: The authors recommend this for readability and the auto-formatting in VS Code takes care of this when
powershell.codeFormatting.alignPropertyValuePairs
is enabled.Jira issue