visual-studio-code - 在 VSCode 中,如何停止通过 Code Runner 扩展运行的代码?

标签 visual-studio-code vscode-code-runner

我通过单击 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/

相关文章:

visual-studio-code - Visual Studio Code Emmet 不起作用

visual-studio-code - Visual Studio 代码中 Sublime 中 Ctrl + D 和 Ctrl + U 的等效快捷方式是什么?

json - 在哪里可以找到设置-变量-引用 Visual Studio 代码文档? (例如 : $fileName, $fileNameWithoutExt)

c# - 为什么 Console.WriteLine 在 Visual Studio Code 中不起作用?

c++ - VSCode 中的 Code Runner 在输出中运行,而不是在终端中运行 CMD

python - 为什么 VSCode Code Runner 不支持 f-strings?

go - 如何在保存时设置 vscode 格式的 golang 代码?

linux - 使用带有 Go 和 GoCV 的 OpenVINO 加载预训练的 DNN 模型 - 符号查找错误

gulp - 如何使用键盘快捷键运行 Gulp 任务

visual-studio-code - 为python配置VS Code输出窗口跳转到输出窗口的最后一行?