Skip to content

Support custom switch-case indentation for JavaScript #235085

Closed

Description

@xmedeko

Feature request microsoft/TypeScript#18682 and PR #179670 added typescript.format.indentSwitchCase setting, so as it's possible to no-indent case in switch command. Unfortunately, it works for TypeScript only.

Please, add make it work for JavaScript, too. E.g. add some javascript.format.indentSwitchCase setting.

Note: See also #32925 which was originally created for JavaScript, but closed as completed, while in fact it's not completed, because the current implementation is for TypeScript only.

Activity

  1. added
    help wanted
    good first issue
    feature-request
    on Dec 3, 2024
  2. vs-code-engineering commented on Dec 3, 2024

    @vs-code-engineering
    Contributor

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  3. samuelpwlim commented on Dec 7, 2024

    @samuelpwlim

    Hi, would I be able to try out this issue?

  4. added
    javascript
    formatting
    on Dec 12, 2024
  5. akhilk2802 commented on Dec 15, 2024

    @akhilk2802

    I want to work on this

  6. karuna-jain commented on Dec 24, 2024

    @karuna-jain

    I want to work on it

  7. 1 remaining item

  8. ahnaf1524 commented on Jan 4, 2025

    @ahnaf1524

    I am new

  9. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 15, 2025
  10. xmedeko commented on Jan 17, 2025

    @xmedeko
    ContributorAuthor

    Thanks for the fix, works well in Insider build, looking forward for the release.
    /verified

  11. added
    verification-needed
    author-verification-requested
    on Jan 28, 2025
  12. vs-code-engineering commented on Jan 28, 2025

    @vs-code-engineering
    Contributor

    This bug has been fixed in the latest release of VS Code Insiders!

    Ondrej Medek (@xmedeko), you can help us out by commenting /verified if things are now working as expected.

    If things still don't seem right, please ensure you're on version a1fc8c1 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

    Happy Coding!

  13. xmedeko commented on Jan 28, 2025

    @xmedeko
    ContributorAuthor

    /verified With the Insider build 2 weeks ago, see my previous post.

  14. added
    verified
    and removed
    author-verification-requested
    on Jan 28, 2025
  15. locked and limited conversation to collaborators on Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestformattinggood first issuehelp wantedinsiders-releasedjavascriptverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions