Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm running a python flask server locally by clicking the run button in VSCode (provided by the Code Runner extension).

How do I stop the server without closing and restarting VSCode?

like image 374
GollyJer Avatar asked Sep 24 '19 01:09

GollyJer


People also ask

How do I stop a running script in Visual Studio?

Try: Ctrl + Alt + M , that should do it.


1 Answers

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.

like image 79
Mihai Chelaru Avatar answered Oct 27 '22 23:10

Mihai Chelaru