第一步,在vscode的settings.json中加入 然后在vscode的settings中查找这个,可以设置为powershell,也可以设置为刚才定义的git-bash,重起vscode,默认打开的terminal就是你所选择的咯 记得把在vscode中开启的terminal都删除光,然后重启vscode,否则的话有可能打开的terminal还是cmd或powershell 如果上面的你还有问题的话,参考...
// Git Bash"terminal.integrated.shell.windows":"E:\\Program Files\\Git\\bin\\bash.exe", 路径请替换为自己的git bash路径。 图3 保存,重启,enjoy。 图4 参考链接: CSDN, 【vscode设置默认shell】, butterfly5211314,链接。 Visual Studio Code, 【Integrated Terminal】,链接。 【How to integrate Git ...
此操作当前将优先于新的配置文件设置,但将来会发生更改。 1. 新版配置如下: "terminal.integrated.profiles.windows": { "Git-Bash": { "path": "D:\\program files\\Git\\bin\\bash.exe", "args": [], "icon": "terminal-bash" }, }, "terminal.integrated.defaultProfile.windows": "Git-Bash" 1...
此操作当前将优先于新的配置文件设置,但将来会发生更改。 1. 新版配置如下: "terminal.integrated.profiles.windows":{"Git-Bash":{"path":"D:\\program files\\Git\\bin\\bash.exe","args":[],"icon":"terminal-bash"},},"terminal.integrated.defaultProfile.windows":"Git-Bash" 1. 2. 3. 4. 5....