windows下vscode配置git-bash为默认终端

  因为刷个leetcode就懒得开虚拟机了,用惯了bash用回cmd很不习惯,所以想用bash。看了几篇博客好像vscode版本已经不一样所以设置也不一样了。

  (1)ctrl+shift+c:setting 

  (2)只需要在其中加入

"terminal.integrated.shell.windows": "D:\programming\Git\bin\bash.exe"
  重启即可。

  不得不吐槽windows的双斜杆设计是为了什么。

原文地址:https://www.cnblogs.com/manch1n/p/14689145.html