Indented snippets are unusable with Send to Interactive



First of all, congratulations to the team for really excellent work.

I pretty often use a function "send to interactive" by highlighting a part of code and using right-hand button. However this option seems to work only when I highlight non-indendent text. When I have a couple of intended lines that I want to run then always indentation error appears.

I understand the reason but this seriosly limits the applications to a case when part of the code in only in the main block.

Is there any way to avoid it ? Am I doing something wrong ?

Kind regards!


pminaev wrote Jan 2 at 8:22 PM

I agree, we should try to detect the base indentation level of the block, and trim down that many spaces/tabs when sending.