You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto deindentation if whole code block pasted are indented #771
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.
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:
a = 3
will break. This will also break in vanilla python, but wouldn't break in ipython for example.
Activity
ikanobori commentedon Jan 5, 2020
It does make sense, is this like a copy/paste into the terminal or does "sending a block of lines" do something different?
shelper commentedon Jan 5, 2020
sending a blocking of lines
nraw commentedon Feb 2, 2020
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.
nraw commentedon Feb 2, 2020
Something along these lines?
https://gist.github.com/nraw/7fa36abad53145ffb4a4255fbf16a049
supakeen commentedon Apr 11, 2020
This will have to be gated between likely both paste detection and/or a feature flag that might default to on.