[Python] Why won't VSCode Smart Send my Python code line by line to the terminal as it used to?

Discussão em 'Python' iniciado por Stack, Agosto 28, 2025.

  1. Stack

    Stack Membro Participativo

    I generally just run my Python code line-by-line using the Python Smart Send feature on VSCode, but after I was away from work for a bit, it suddenly stopped working. Normally Shift + Enter or Right Click > Run Python > Run Selection/line in Terminal will run one chunk/line of code at a time directly in the integrated Python terminal. Now, it does absolutely nothing. No error message is sent, it's just inert.

    Near as I can tell, this is related to the fact that the integrated terminal is opening as Powershell instead of a command prompt that automatically starts up a Python instance. I have tried setting terminal.integrated.defaultProfile.Windows to Command Prompt, but with no luck; it actually continues to open up a Powershell on first load and whenever I open a terminal without specifying that it should be a command line.

    Each new powershell terminal runs the following command when it is opened, if it's any help to anyone in understanding things: (& C:\Users\REDACTED\AppData\Local\miniforge3\shell\condabin\conda-hook.ps1) ; (conda activate base).

    I have tried:

    -Double checking that the keyboard shortcut for Smart Send is enabled (it is)

    -Manually entering the default shell in the options

    -Uninstalling and reinstalling VSCode (Version 1.103.2)

    -Uninstalling and reinstalling Python (Distributed through MiniForge3 25.3.1-0)

    I'm just hoping for the ability to go back to being a script kiddy and running my Python code bit by bit.

    Continue reading...

Compartilhe esta Página