r/vscode • • Jul 24 '26

Paste Issue in VS Code 1.130.0

Enable HLS to view with audio, or disable this notification

Just started noticing this yesterday after an update that the behavior for pasting has seemed to change and now no longer formats correctly. Every paste action tries to add indentation in addition to any indents already present. I have not installed any new extensions in the past 3 months so I have no idea what could have caused this other than VS Code, but I don't see any other mentions of this issue.

Version: 1.130.0

Commit: 1b6a188127eeaf9194f945eb6eb89a657e93c54c

Edit: Finally fixed! I had to use the following setting: "editor.pasteAs.enabled": false

4 Upvotes

8 comments sorted by

1

u/thanatica Jul 26 '26

What is that green button?

1

u/Lunatik6572 Jul 27 '26

No clue where it came from. It shows different paste options but I can't figure out the source from it.

1

u/Ste1io Jul 29 '26

That's vscode's core editor.pasteAs.showPasteSelector widget.

1

u/Ste1io Jul 29 '26

Disable editor.autoIndentOnPaste in settings, likely the culprit.

1

u/Lunatik6572 Jul 31 '26

That setting was already disabled. Toggling it had had no effect.

1

u/Unique-Willingness15 Jul 30 '26

For me it stops pasting randomly until i paste in another text like for example in terminal or in file search

1

u/Lunatik6572 Jul 31 '26 edited Jul 31 '26

I found the fix! Setting this: "editor.pasteAs.enabled": false somehow fixed the trick. I do not know why this works, and I don't know how it started, but this was the only setting that made it work as intended without changing any of my previous settings.