day3:windows系统vscode运行bash脚本配置

1.安装vscode(https://code.visualstudio.com/)、git(https://git-scm.com/)

2.将git安装后的git/bin目录配置为系统环境变量;在windows  cmd窗口运行git --version,能正确输出版本信息;

3.vscode安装code runner扩展,再在用户设置settings.json添加"code-runner.runInTerminal": true    注意和已有配置项之间用,隔开;

 或者在设置中搜索code-runner.runInTerminal后将红框内勾上

 

 

4.重启vscode后,在终端中输入bash(因为此时终端还是powershell环境),再右键运行bash脚本即正常运行。

5.安装git后可以在cmd窗口进入bash环境(输入bash回车)【存疑,后面似乎直接邮件运行脚本也可以】,右键运行bash脚本

 

posted @ 2021-11-10 15:31  诟笑  阅读(860)  评论(0)    收藏  举报