Skip to content

BUG: When copy and pasting a comment into code, align it with the current indentation #212335

@psnet

Description

@psnet

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

Version: 1.89.0 (user setup)
Commit: b58957e
Date: 2024-05-01T02:09:22.859Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10

Steps to Reproduce:

  1. Copy comment
  2. Paste it

ER:
Comment is pasted with same indentation as code

AR:
Comment is pasted with spaces before it or not indentation at all

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