Skip to content

Autoindent on paste stopped working #249076

@janchudysk

Description

@janchudysk

Type: Bug

Since the last update the auto-indentation on paste stopped working.
I have tested it even on your online version (https://vscode.dev/).

Steps to reproduce:
create new .scss file with content

.test {
  color: red;
}

.test2 {
  color: blue;
}

then copy/paste the .test2 block inside the .test1 block. In previous version, the pasted block was auto-indented.

I also tried different file types - php, html.
Also tried with disabled extensions.

VS Code version: Code 1.100.2 (848b80a, 2025-05-14T21:47:40.416Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8400T CPU @ 1.70GHz (6 x 1704)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.87GB (6.80GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (17)
Extension Author (truncated) Version
vscode-sql-formatter adp 1.4.4
replacerules bhu 0.4.2
vscode-intelephense-client bme 1.14.4
mjml-syntax dig 0.0.1
auto-close-tag for 0.5.15
hungry-delete jas 1.7.0
wrapSelection kon 0.10.0
vscode-scss mrm 0.10.0
remote-ssh ms- 0.120.0
remote-ssh-edit ms- 0.87.0
remote-explorer ms- 0.5.0
vs-slug nep 1.0.1
material-icon-theme PKi 5.22.0
run-on-save puc 1.10.2
vsc-material-theme-but-i-wont-sue-you t3d 35.0.3
lorem-ipsum Tyr 1.3.1
vscode-todo-highlight way 1.0.5

Metadata

Metadata

Assignees

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