Skip to content
Advertisement

Vscode will not autofocus on integrated terminal while running code

When I run without debugging in python on vscode it no longer autofocuses on the terminal forcing me to click into the terminal everytime to input data. Is there any solution to cause vscode to autofocus when code is running?

Advertisement

Answer

Two Fixes/Workarounds I utilized.

Autohotkey Script:

F9::
Send {F5}
Sleep 200
SendInput ^{~}

Or Rebind:

View: Toggle Terminal Originally (Ctrl + ~) to F5 so jumps to the terminal everytime you run

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement