You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to see an option to allow alignment of assignmentgroups. Its easiest to show what I mean with an example. (Github wouldn't allow me to format the code manually and trimmed the whitespaces automatically so I had to attach a printscreen)
So that '=' are aligned in columns within a group of assignments. A group could be interpreted as delimitered with a blank line.
I can see that not everyone would like this so this feature should probably be activated by an powershell.codeformating -setting.
I think the best thing to do is to open a new issue in PSScriptAnalyzer. Then we'll have a little bit of integration work to do but it should be pretty straightforward.
Awesome! Yeah I think we should leave the issue open here both to track the work to integrate and also for anyone else who is looking for this feature.
Activity
rjmholt commentedon Jun 26, 2018
Formatting is actually provided by PSScriptAnalyzer's
Invoke-Formattercommand. We hook into it in EditorServices here.I think the best thing to do is to open a new issue in PSScriptAnalyzer. Then we'll have a little bit of integration work to do but it should be pretty straightforward.
hanpq commentedon Jun 27, 2018
Ah, I see! I've made another feature request in PSScriptAnalyzer here: PowerShell/PSScriptAnalyzer#1029
Should I leave this feature request open since you said it might need integration work later on if the feature is implemented in PSScriptAnalyzer?
Thanks!
rjmholt commentedon Jun 27, 2018
Awesome! Yeah I think we should leave the issue open here both to track the work to integrate and also for anyone else who is looking for this feature.
TylerLeonhardt commentedon Apr 22, 2020
Let's actually close this issue here for now until it's implemented in PSSA since there's (currently) no action item on the extension.