Windows下VSCode运行Bash终端

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

                       

可能Windows开发的一个缺点就是与shell结合的不好,Git Bash提供了一种方式可以在Windows下执行Linux命令,如何将其结合在VSCode中使用呢?

参考回答:https://stackoverflow.com/questions/42606837/how-to-use-bash-on-windows-from-visual-studio-code-integrated-terminal

两种方式:1. 将Git bash目录比如C:\Program Files (x86)\Git\bin\bash.exe添加到环境变量中,就可以VSCode终端输入bash进入Bash模式了, 同理,输入cmd即可返回默认Cmd模式。
2. 如果想默认设置Bash模式,可以编辑用户设置文件,添加"terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\bash.exe"

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述

猜你喜欢

转载自blog.csdn.net/qq_43682817/article/details/84106856