Skip to content

No indentation when pasting into a string #250468

@aiday-mar

Description

@aiday-mar

Interesting catch.

I saw this behaviour even if there is no an empty line and not only in json.

text to be copied

line 1
line 2
line 3

code before pasting
Image

code after pasting
Image

line 2 and line 3 should be indented.

Is it the same issue?

This is the reason I always paste the text at the beginning of the column, then I select it and indent it.

Originally posted by @albertosantini in #239783

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