formulahendry / formulahendry/vscode-code-runner
有空格文件不能完美运行
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description
我发现在使用coderunner运行C/C++时,不能运行带有空格的文件。希望在路径中文件名两旁默认加上双引号‘“’。
另外,在运行C/C++时路径中最后一段是&& $dir$fileNameWithoutExt
而$dir自带双引号,运行时有错误
所以我将配置文件改成了如下
"code-runner.executorMap": {
"javascript": "node",
"php": "C:\\php\\php.exe",
"python": "python",
"perl": "perl",
"ruby": "C:\\Ruby23-x64\\bin\\ruby.exe",
"go": "go run",
"html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc \"$fileName\" -o \"$fileNameWithoutExt\" && \"$fileNameWithoutExt\"",
"cpp": "cd $dir && g++ \"$fileName\" -o \"$fileNameWithoutExt\" && \"$fileNameWithoutExt\"",
},
希望能够采纳,谢谢
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.