Skip to content

Align groups of assignments (=) #1385

Closed

Description

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)

bild

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.

Activity

  1. added
    Issue-Enhancement
    Up for Grabs
    on Jun 26, 2018
  2. rjmholt commented on Jun 26, 2018

    @rjmholt
    Contributor

    Formatting is actually provided by PSScriptAnalyzer's Invoke-Formatter command. 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.

  3. hanpq commented on Jun 27, 2018

    @hanpq
    Author

    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!

  4. rjmholt commented on Jun 27, 2018

    @rjmholt
    Contributor

    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.

  5. TylerLeonhardt commented on Apr 22, 2020

    @TylerLeonhardt
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Code FormattingIssue-EnhancementUp for Grabs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions