'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?
Solution 1:[1]
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
Solution 2:[2]
I think there is no relevant implementation method for code runner at present. You could use shortcut "Ctrl+~" to foucus on the terminal, and I will submit the function to GitHub.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Incisor |
| Solution 2 | MingJie-MSFT |
