2017-06-20 152 views

回答

4

有此设置您的工作空间:

//在终端上Windows使用的shell的路径。当使用Windows附带的shell(在Ubuntu上为cmd,PowerShell或Bash)时,在C:\ Windows \ System32上使用C:\ Windows \ sysnative以使用64位版本。

"terminal.integrated.shell.windows": “C:\\Windows\\sysnative\\bash.exe”, 

假设您已经安装了它。我在这里找到这个信息:

installing and setting up git bash in vscode

0

我不确定是否可以将内置终端设置为Git Bash。在项目根目录中打开Git Bash终端就足够了。

您可以通过右击打开的目录并点击'Git Bash here'来完成此操作。

+0

它是可能的,并且工作得很好。按照预期,Git Bash会在所选目录中打开。 – Jared