Skip to content

Formatter: Unexpected line breaks in braces when Record declares #3549

Open

Description

When declaring Record, if the argument of an annotation is an array (using braces), the code formatter will wrap the braces in newline, and I think it should be better not to wrap the braces in this case.

Environment
  • Operating System: macOS
  • JDK version: 17.0.10
  • Visual Studio Code version: 1.87.2 (Universal)
  • Java extension version: 1.28.1
Current Result

图片

Expected Result

图片

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions