Skip to content

Indenting Bug #249277

@qjwh

Description

@qjwh

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

  • VS Code Version: 1.100.2 (newest)
  • OS Version: Windows 10

Steps to Reproduce:

(I'm a Chinese, and my English may not be very standard.)

[This is similar to this issue]

Type the following code:

{
    123
    {
        123
    }
}

Cut lines from 3 to 4, like this:

{
    123
    {
    }
}

Then, paste it on line 1, the you will get:

{
        123
    123
    {
    }
}

VSCode version 1.99 (maybe) didn't have this bug, because you will get this at that version:

{
    123
    123
    {
    }
}

And this is also the result when I use Alt+UpArrow instead of Ctrl+X Ctrl+V at version 1.100.2.

I set the setting Editor: Auto Indent to full(default), but the bug didn't disappear.

Is this a bug? Or it's my fault? If it's my fault, how to fix it?

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugeditor-autoindentEditor auto indentation issueseditor-clipboardEditor clipboard 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