In VSCode, how do you stop code that is running via the Code Runner extension?

Mihai Chelaru has already answered the question, but I just wanted to let everyone know that by changing from Ctrl + Alt + M to e.g. Ctrl + Alt + B, the code run does stop.


From the Code Runner extension marketplace page, you have the following options:

To stop the running code:

  • use shortcut Ctrl + Alt + M
  • or press F1 and then select/type Stop Code Run
  • or right click the Output Channel and then click Stop Code Run in context menu

YMMV with the Ctrl + Alt + M shortcut, which does not work for me for some reason.