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

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

问题描述

在正常的Windows命令提示符下, ctrl + c 将停止节点服务器的运行。

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

但是,如果我通过VS Code菜单项在命令提示符下打开启动命令提示符,然后按 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.

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

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天全站免登陆