Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automatic indentation on multi-line is inconsistent #3697

@rarensu

Description

@rarensu

Describe the current behavior
"automatically close brackets and quotes in code cells" editor setting was enabled.
Typed the following characters in to a code cell. (Using newline to represent the enter key.)

[
1,
2

Colab cell content became:

[
    1,
 2
]

The indentation of the 1 and 2 elements does not match.

Describe the expected behavior
I hoped for a result like this:

[
    1,
    2
]

Or perhaps this:

[
 1,
 2
]

I am not a style expert, so I don't know which is better.

What web browser you are using
Chrome Version 113.0.5672.94 (Official Build) (64-bit)

Additional context

Metadata

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