解决vscode运行shell脚本提示bash: test.sh: No such file or directory的问题
·
1、进入扩展中的code-runner 选择Code-runner: Language ID To File Extension Map

进行如下配置:
"code-runner.languageIdToFileExtensionMap": {
"bat": ".bat",
"powershell": ".ps1",
"typescript": ".ts",
"git-bash": ".sh"
},
"terminal.integrated.shell.windows": "D:\\git\\bash.exe",
2、然后直接右键run code即可

参考文献:vscode配置shell脚本,window上运行shell脚本_vscode运行shell脚本-CSDN博客
更多推荐
所有评论(0)