[Python] Sending Python chunks to terminal (not interactive or REPL) in VS Code [closed]

Discussão em 'Python' iniciado por Stack, Junho 10, 2025.

  1. Stack

    Stack Membro Participativo

    I've switched to VSC over Sublime. There are two pieces of my workflow that I can't quite replicate. I've figured out how to open a Terminal and then send line or selections of lines to the terminal by changing the keyboard preferences of Run Selected Text in Active Terminal to Ctrl + Enter.

    [​IMG]

    Two issues:


    1. How can I have the cursor then automatically move to the next line after I hit Ctrl+Enter? Sublime Text did this so I could just rapidly hit Ctrl+Enter and move down lines.


    2. How do I send code chunks to the active terminal instead of the Interactive or REPL? I've installed Smart Send for Python, and now my code chunks have that nice Run Cell command, and if I hit Shift + Enter it runs. But I want to it to run in my active Terminal. If I try this, I get:

      [​IMG]

      where it tries to open and interactive terminal, which can't run Python.

    Continue reading...

Compartilhe esta Página