我通过单击 VSCode 中的运行按钮(由 Code Runner 扩展提供)在本地运行 python Flask 服务器。
如何在不关闭并重新启动 VSCode 的情况下停止服务器?
最佳答案
来自Code Runner extension marketplace page ,您有以下选择:
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
使用 Ctrl + Alt + M 快捷键的 YMMV,由于某种原因对我不起作用。
关于visual-studio-code - 在 VSCode 中,如何停止通过 Code Runner 扩展运行的代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58071786/