Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

[JS] should indent switch block 1 space unit, not two #2812

@marcelgerber

Description

@marcelgerber
  1. Go to http://codemirror.net/mode/javascript/index.html
  2. Type switch (foo) {, then press Enter

Result:
The following line is indented 2 space units (4 spaces in this demo)

Expected:
The following line is indented 1 space unit (2 spaces in this demo)

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