Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAuto deindentation if whole code block pasted are indented #771
Comments
|
It does make sense, is this like a copy/paste into the terminal or does "sending a block of lines" do something different? |
|
sending a blocking of lines |
|
I think this is a critical deterrent for me. When it comes to sending some lines from the code to bpython, for me they would rarely start without some indentation before it, so already something along the line of:
will break. This will also break in vanilla python, but wouldn't break in ipython for example. |
|
Something along these lines? |
|
This will have to be gated between likely both paste detection and/or a feature flag that might default to on. |
i use bpython in vscode and if i send a block of lines that are indented to bpython, it will raise indentation error.
I wonder if it is possible to deindent the code if the whole block is indented. that makes sense if you want to test run lines within a loop , for instance.