C - VSC 终端中的 "too many arguments"



当我尝试运行简单的helloworld(在C中(时,VSC终端中有"cd:参数太多"。这就是代码。我正在使用代码运行程序在VSC中运行我的代码。

#include<stdio.h>
int main()
{
printf("Hello World");
return 0;
}

这就是错误:

bash: cd: too many arguments

使用此settings.json来解决问题。它奏效了。

{
"code-runner.saveAllFilesBeforeRun": true,
"code-runner.saveFileBeforeRun": true,
"code-runner.runInTerminal": true
"C_Cpp.updateChannel": "Insiders",
"http.proxySupport": "off"
}

最新更新