1 windows下vscode运行shell
- 安装git bash:http://www.git-scm.com/download/ 一直next就行,个人对这个也不理解
- 配置环境变量:找打bash.exe,我的在E:\Git\Git\bin路径,将此路径添加到环境变量中。控制面板-》系统属性-》高级-》环境变量-》系统变量-》path中放入bash.exe的路径
- vscode中setting 搜索“Code-runner:Run in Terminal”,打开该选项
- vscode中可以安装Code Runner、shell-format、ShellCheck、shellman
- 重启后,每次使用前vscode中输入bash切换环境