我正在使用 VS Code 來運行 C 代碼。
每當我按 Ctrl Shift B 構建我的 .cpp 檔案時,都會彈出一個“echo”選項卡,這會顯示整個底部面板,然后我會被要求“終端將被任務重用,按任意鍵將其關閉。 ”
我不希望選項卡或面板彈出所有,并希望整個構建程序中出現沉默,沒有彈出。
這是我的 tasks.json 檔案
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "gcc",
"args":[
"main.cpp","-lstdc ","-o" ,"main.exe"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
uj5u.com熱心網友回復:
通過將 VSCode 降級到 1.60 解決:https ://code.visualstudio.com/updates/v1_60
uj5u.com熱心網友回復:
這可以使用"presentation": {...}. 以下為我作業:
{
"version": "2.0.0",
"tasks": [
{
"label": "Test task",
"type": "shell",
"command": "echo Hello world",
"presentation": {
"echo": true,
"reveal": "never",
"showReuseMessage": false,
}
}
]
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/378714.html
上一篇:如何僅更改檔案夾中沒有特定像素寬度和高度的影像的像素大小?
下一篇:如何簡化包含“作業時間”的物件?
