Open cx-oss opened 3 years ago
提示为正常提示,无视即可
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: cx-oss @.> Sent: Tuesday, August 17, 2021 9:43:34 PM To: SDchao/AutoVsCEnv_WPF @.> Cc: Subscribed @.***> Subject: [SDchao/AutoVsCEnv_WPF] 安装了两次,并不小心装在了不同位置 (#131)
.vscode有两个,导致报错“终端将被任务重用,按任意键关闭。”
― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/SDchao/AutoVsCEnv_WPF/issues/131, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIGRCHXFIZ3UMBQDVOHYHSLT5JRQNANCNFSM5CJ44GKQ.
半解决方法:完全卸载vscode,再在tasks.json文件中,如果有presentation属性,更改为如下两个属性:
"panel": "new",
"showReuseMessage": false
如果没有presentation属性,直接在文件中添加此属性,然后更改上面提到的两个属性:
"tasks": [
{
"type": "shell",
"label": "task g++",
"command": "D:\software\VScode\MinGW\x86_64-8.1.0-release-posix-seh-rt_v6-rev0\mingw64\bin\g++.exe",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new", //修改后的
"showReuseMessage": false, //修改后的
"clear": false
},
在主函数的命令后加上system("pause")命令,注意在头文件加上#include
.vscode有两个,导致报错“终端将被任务重用,按任意键关闭。”