formulahendry / formulahendry/vscode-code-runner
about "code-runner.fileDirectoryAsCwd"
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description
当我使用setting.json配置了terminal
`"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",`
和
`"code-runner.fileDirectoryAsCwd": true,`
它就会使用如下命令跳转目录
`cd xxx/xxx`
然而cmd.exe的命令"cd",缺少参数"/d",将无法进入到相应目录。
**它似乎是和`"code-runner.cwd"`配合使用的,不知道这是一个bug还是原意如此?**
目前我是在`"code-runner.executorMap"`里面自行配置相应语言的配置,在开头加入`cd /d $dir`
——————————————————————————————
When I configured the terminal using setting.json
`" terminal.integrated.shell.windows ":" C: \\ WINDOWS \\ System32 \\ cmd.exe ",`
with
`"code-runner.fileDirectoryAsCwd": true,`
it will use the following command to jump to the directory
`cd xxx / xxx`
However, the cmd.exe command "cd", without the parameter "/ d", will not be able to enter the corresponding directory.
**It seems to be used in conjunction with `" code-runner.cwd "`. I don't know if this is a bug or the original intention?**
At present, I configure the configuration of the corresponding language in `"code-runner.executorMap"`, and add `cd / d $ dir`at the beginning.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.