我想在VS代碼中創建任務,但我需要指向實際文件的路徑。這裏有一些選擇嗎? 我的任務:VS代碼 - 當前活動文件所在文件夾的完整路徑
{
"version": "0.1.0",
"command": "${workspaceRoot}/run.sh",
"isShellCommand": true,
"options": {
"cwd": "${hereINeedPathToActualFile}"
},
"args": ["${file}"],
"showOutput": "always"
}
非常感謝
嗨,我需要變量「cwd」 – Well