Microsoft/vscode

De-Indent code on paste into IW code cell

Open

#160,442 opened on Sep 8, 2022

View on GitHub
 (9 comments) (4 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
bughelp wantedinteractive-window

Description

One thing I find myself doing VERY often is copying a small chunk of code from a python file (which could be eg inside a loop, and indented x times) and pasting it into the IW code entry cell.

It would be super nice if on code paste to IW cell vscode could automatically de-indent to match the current indent scope.

Actual:

Would be nice:

Or to match correct indent level:

Contributor guide