Skip to content

[Feature request] Support configurable spacing within expression parentheses. #2343

Open

Description

@jimb2h

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been requested.

Summary

Configurable spacing within expression parentheses.

Example:
( $x + 1 ) vs ($x + 1)

It would ideally be exposed through PSUseConsistentWhitespace as a configurable option. This would be like the C-style formatter option: SpaceWithinParentheses = true

I've always used this style but it's become a problem with automatic code generation.

Proposed Design

I think this could be borrowed from the C formatter.

Activity

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

    Issue-EnhancementA feature request (enhancement).Needs: TriageMaintainer attention needed!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions