Skip to content

Allow users to define their own indentation rules within the settings #209805

Open

Description

This feature request derives from #43244 (comment). In that thread, some users have been mentioning they wanted to undo some changes that were made to language configuration files. To help them, we could allow them to edit the indentation rules directly within the settings files.

Activity

  1. added
    editor-autoindent
    feature-request
    on Apr 8, 2024
  2. aiday-mar commented on Apr 8, 2024

    @aiday-mar
    CollaboratorAuthor

    After discussing with the team, we have come to the conclusion that we do not want to pass on the complexity of the indentation rules to the end user. The indentation rules are quite complicated and if not well thought out by the user, they could cause indentation issues. For now we will not add support for setting overriding, however interested users can create extensions which provide their own language configuration files.

  3. FlowIT-JIT commented on May 6, 2024

    @FlowIT-JIT

    Aiday Marlen Kyzy (@aiday-mar) This is absolutely unacceptable. The changes in 1.88.x+ broke the editing experience. Literally broke it. We constantly have to fix broken code now. See #209802

    And the new behaviour doesn't align with the explaination in settings:

    image

    "The editor will keep the current line's indentation"

    How 1.88 was accepted as a stable version ready for release is beyond me.

    EDIT: Switching to the "Advanced" option actually seems to solve some of the problems introduced in 1.88. I will be testing that.

  4. aiday-mar commented on May 13, 2024

    @aiday-mar
    CollaboratorAuthor

    Hi FlowIT-JIT thank you for expressing your concern, I will look into unindenting the line when a bracket is typed on an indented line after a braceless if/for/while statement.

  5. alanbork commented on May 22, 2025

    @alanbork

    if the indentation implementation is too complex for mere mortal developers, then at least give us a few options to choose. Forcing us to all use the same indentation style is such regression compared to code editors dating back to even 1999 (here I'm thinking of VC6). Jetbrains may offer too many options, but the VS code solution of "keep" or accept what we tell you is good style is very ill mannered.

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

Metadata

Metadata

Labels

editor-autoindentfeature-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions