Ctrl+C does not stop node server in Command Line from VS Code

后端 未结 4 1236
忘了有多久
忘了有多久 2020-12-19 07:41

From a normal Windows command prompt, ctrl+c will stop a node server running.

However, if I start the command prompt via the VS Code menu item Op

4条回答
  •  不思量自难忘°
    2020-12-19 08:21

    In VS Code you will see a pull-down menu at the top of the terminal in the right corner. If you are in a running node app and want to close it or you are "stuck" the pull-down menu should say node. Click the trashcan (kill terminal) next to the list to close the running node app. You should be returned to the terminal unless you have something else running like another node app. Select bash, powershell, etc from the pull-down menu to navigate back to your command line.

提交回复
热议问题