Skip to content

Don't indent case labels within switch #32925

Closed

Description

@jankalfus

VSCode has started to indent case labels in switch statements in JavaScript since the July 2017 release. It didn't do this previously and there's no setting (AFAIK) to change this behaviour back. BTW most style guides and also ESLint by default prefer not to indent the case labels.

  • VSCode Version: 1.15.1
  • OS Version: MacOS Sierra 10.12.6

Steps to Reproduce:

  1. Create a switch statement with case labels
  2. Use the "Format Document" command

Reproduces without extensions: Yes

Activity

  1. added
    editor-core
    on Aug 22, 2017
  2. added
    javascript
    and removed
    editor-core
    on Oct 26, 2017
  3. added
    formatting
    upstream
    on Oct 27, 2017
  4. mjbvz commented on Oct 27, 2017

    @mjbvz
    Contributor

    Tracked upstream by microsoft/TypeScript#18682

  5. locked and limited conversation to collaborators on Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

formattingjavascriptupstream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions