简体   繁体   中英

“too many arguments” in VSC terminal

I am having "cd: too many arguments" in VSC terminal when I try to run simple helloworld (in C). This is the code. I am using code runner to run my code inside VSC.

#include<stdio.h>

int main()
{
   printf("Hello World");
   return 0;
}

And this is the error:

bash: cd: too many arguments

Used this settings.json to fix the problem. And it worked.

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

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM