title: Killing Python with a keybinding in VS code
body: <p>I'm experimenting with some Python code that generates sound. I'm using VS code. I've set up a keyboard shortcut for the &quot;Python: Run Python File&quot; action, which starts the sound playing in a terminal window.</p>
  <p>In order to stop the sound, I have to first click in the terminal panel and then I can do CMD-. (Mac equivalent of ctrl-C.) This takes a couple of seconds though, and if my code is unexpectedly producing a very loud sound I'd like to be able to stop it as quickly as possible.</p>
  <p>So my question is, is there a way I can set up a keybinding to immediately stop the running Python process, without first needing to click in the terminal panel where it's running?</p>
  <p>There are a number of actions that sounded like they should work, such as &quot;Terminal: Kill the Active Terminal in Editor Area&quot; (bound to CMD-w by default). However, this just seems to close the source file without affecting the terminal at all.</p>