How to stop execution of python script in visual studio code?
There should be a trashcan at the top of the integrated terminal window. Clicking the trashcan will kill the window and the processes.
You can also try ctrl-Z or ctrl-D.
Try: Ctrl+Alt+M, that should do it.
You could Ctrl+Shift+P and then Terminal: Relaunch Active Terminal
Or create a shortcut for it