Skip to content

Extended Formatting Options for the ObjectScript Formatter (Language Server) #1674

@TwaHendrik

Description

@TwaHendrik

Hello,

we are currently defining internal code guidelines and are using the ObjectScript Formatter from the Language Server together with the VS Code settings.json.
To support consistent coding standards, it would be very helpful if the formatter provided additional configurable options.

Requested Features:

  1. Automatic indentation correction. Similar to languages like Java, the formatter should automatically fix incorrect indentation based on defined style rules.
  2. Normalization of multiple blank lines. The ability to automatically reduce multiple consecutive blank lines to a configurable maximum number (e.g., collapse to one).
  3. Configurable bracket/brace placement. Support for choosing whether opening braces for structures (e.g., If, While, etc.) should appear on the same line or on the next line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions