操作系统:Windows
终端:git bash
Windows 下终端的路径中的反斜杠 \
应写成双反斜杠 \\
,参见用户设置中的 terminal.external.windowsExec
和 terminal.integrated.shell.windows
Interesting bug. This only happens when you run a file which is in the root folder of a drive on Windows.
Seems that is not the root cause.
You are using bash on Windows? What bash are you using?
@formulahendry
Git Bash.
For Git Bash, you could use below settings to handle the file path in Git Bash:
"code-runner.terminalRoot": "/"
Let me know whether it works for you.
@formulahendry It works! Thank you.
Most helpful comment
For Git Bash, you could use below settings to handle the file path in Git Bash:
Let me know whether it works for you.