Python Forum

Full Version: VSCode want to change to terminal window.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have really become fond of VS code, except for one thing which I'd like to change. I expect that there is a way to do this, but haven't been able to find the answer.

When I right click in the code window and choose 'Run Python file in terminal window', the code executes as expected, but the cursor remains in the code window. I think it be better if the cursor changed to the terminal window, so that you could input text, and for many other reasons.

It is possible to change this behavior, and if so, how?
Probably not what you are looking for, but if you:
a. 'Left Click' the Debug Symbol on the left Margin, then
b. 'Left Click' the 'Green Triangle' VS code runs in Debug Mode (takes longer), but the cursor is in the 'Terminal Window'.

NOTE: After running like this, sometimes you have to 'Left Click' the 'Orange Square' to reset, before the 'Green Triangle' can be selected again.

Lewis
Sounds like too much to pay, but I'll try it.
Do you mean when when run file,
so can you continue and test content of file in interactive interpreter >>> that run in terminal?
Quote:Do you mean when when run file,
yes, the cursor remains in the code window, and I start typing linux commands which end up in my code.
Not a big problem, but rather an annoyance.