Ctrl+C 不会在来自 VS Code 的命令行中停止节点服务器 [英] Ctrl+C does not stop node server in Command Line from VS Code

查看:33
本文介绍了Ctrl+C 不会在来自 VS Code 的命令行中停止节点服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在普通的 Windows 命令提示符下,ctrl+c 将停止运行节点服务器.

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

但是,如果我通过 VS Code 菜单项 Open in Command Prompt 启动命令提示符,然后按 ctrl+c(甚至多次)不要像往常一样停止服务器.

However, if I start the command prompt via the VS Code menu item Open in Command Prompt, then pressing ctrl+c (even multiple times) does not stop the server as usual.

知道 VS Code 命令提示符与标准 Windows 命令提示符相比有什么不同吗?

Any idea what is different in the VS Code command prompt compared to the standard windows command prompt?

(在 Windows 10 x64 上运行)(VS 代码 1.11.2)

(Running on Windows 10 x64) (VS Code 1.11.2)

推荐答案

添加这个设置解决问题:

Adding this setting solves the problem:

"terminal.external.windowsExec": "C:\Windows\sysnative\cmd.exe"

类似的声音将在未来版本中修复.(请参阅链接到 Github 问题)

Sounds like this will be fixed in future versions. (See Link to Github Issue)

这篇关于Ctrl+C 不会在来自 VS Code 的命令行中停止节点服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆