Vscode-code-runner: Windows 中使用终端时的路径问题

Created on 26 Sep 2017  ·  5Comments  ·  Source: formulahendry/vscode-code-runner

操作系统:Windows
终端:git bash
Windows 下终端的路径中的反斜杠 \ 应写成双反斜杠 \\ ,参见用户设置中的 terminal.external.windowsExecterminal.integrated.shell.windows

_20170926200113

question

Most helpful comment

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.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mjaniec2013 picture mjaniec2013  ·  5Comments

manikantag picture manikantag  ·  4Comments

ElektroStudios picture ElektroStudios  ·  4Comments

seiferthan picture seiferthan  ·  4Comments

emadb picture emadb  ·  5Comments