Skip to content

Auto-indent: incorrect indentation after Enter of arrow in arrow function #208215

@aiday-mar

Description

@aiday-mar
  • Type the following in a TS file

const add1 = (n) =>

  • Press Enter after the arrow. The cursor is not indented (here cursor is shown by | symbol):
const add1 = (n) =>
|
  • We should instead have:
const add1 = (n) =>
    |

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-autoindentEditor auto indentation issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions