Skip to content

JS: Incorrect indentation after comment line #299080

@psnet

Description

@psnet

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.109.5
  • OS Version: Windows_NT x64 10
  • Commit: 0725862

Steps to Reproduce:

  1. Open new file Ctrl + N
  2. Select file language JavaScript
  3. Paste next commented line (entirely as is):
// const test = () => {
  1. Cursor stays at the end of this commented line, press Enter key
  2. On new line cursor somehow uses additional indentation instead of being right below commented line:
Image

ER

But cursor must be below it:
Image

Metadata

Metadata

Assignees

Labels

ai-triagedbugIssue identified by VS Code Team member as probable bugeditor-autoindentEditor auto indentation issuesjavascriptJavaScript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions