Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行C++;visualstudio代码 我已经安装C++代码,我做了一个构建任务,一个运行,这里是我的任务。JSON文件: "tasks": [ { "taskName": "build", "command": "g++", "isShellCommand": true, "showOutput": "always", "args": ["-g", "${workspaceRoot}/C++/main.cpp"], "isBuildCommand": true },{ "taskName": "run", "command": "${workspaceRoot}/a.out", "showOutput": "always", "isShellCommand": true, "echoCommand": true } ]_C++_Visual Studio Code - Fatal编程技术网

运行C++;visualstudio代码 我已经安装C++代码,我做了一个构建任务,一个运行,这里是我的任务。JSON文件: "tasks": [ { "taskName": "build", "command": "g++", "isShellCommand": true, "showOutput": "always", "args": ["-g", "${workspaceRoot}/C++/main.cpp"], "isBuildCommand": true },{ "taskName": "run", "command": "${workspaceRoot}/a.out", "showOutput": "always", "isShellCommand": true, "echoCommand": true } ]

运行C++;visualstudio代码 我已经安装C++代码,我做了一个构建任务,一个运行,这里是我的任务。JSON文件: "tasks": [ { "taskName": "build", "command": "g++", "isShellCommand": true, "showOutput": "always", "args": ["-g", "${workspaceRoot}/C++/main.cpp"], "isBuildCommand": true },{ "taskName": "run", "command": "${workspaceRoot}/a.out", "showOutput": "always", "isShellCommand": true, "echoCommand": true } ],c++,visual-studio-code,C++,Visual Studio Code,构建工作正常,但每当我运行runtask VS code时,左下角只会出现一条向前的斜线,输出显示running命令$/home/vitor/Documentos/code/a.out,但不接受任何输入 我应该如何设置我的任务?JSON 文件,用于运行C++内部VS代码?< /P> PS:代码在终端上正常运行

构建工作正常,但每当我运行
run
task VS code时,左下角只会出现一条向前的斜线,输出显示
running命令$/home/vitor/Documentos/code/a.out
,但不接受任何输入

<>我应该如何设置我的<代码>任务?JSON <代码>文件,用于运行C++内部VS代码?< /P> PS:代码在终端上正常运行