Python Forum
VSCode want to change to terminal window. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: VSCode want to change to terminal window. (/thread-11316.html)



VSCode want to change to terminal window. - Larz60+ - Jul-03-2018

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?


RE: VSCode want to change to terminal window. - ljmetzger - Jul-03-2018

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


RE: VSCode want to change to terminal window. - Larz60+ - Jul-04-2018

Sounds like too much to pay, but I'll try it.


RE: VSCode want to change to terminal window. - snippsat - Jul-04-2018

Do you mean when when run file,
so can you continue and test content of file in interactive interpreter >>> that run in terminal?


RE: VSCode want to change to terminal window. - Larz60+ - Jul-04-2018

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.