Skip to content

Incorrect indentation inside of comments #208232

Closed

Description

  • Consider the following TS example
/**
indentation done for {
*/
  • Place the cursor after the opening brace
  • Click enter
  • The next line will be indented although it doesn't make sense to do an indentation here
Screen.Recording.2024-03-20.at.18.50.27.mov

Activity

  1. added
    bug
    editor-autoindent
    on Mar 20, 2024
  2. aiday-mar commented on Apr 4, 2024

    @aiday-mar
    CollaboratorAuthor

    We should look at the standard token type, and when we detect we are inside of a comment, we no longer do the indentation.

  3. locked and limited conversation to collaborators on Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugeditor-autoindent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions