Visual Studio 代码:使用 Git Bash (windows)
Visual Studio Code: Use Git Bash (windows)
我发现了关于如何使用 Git Bash 和完整的 Visual Studio 的问题,但我无法找到关于如何使用的任何指导将 Visual Studio 代码提供的内置终端设置为 Git Bash。这可能吗?
我不确定是否可以将内置终端设置为 Git Bash。在项目根目录中打开 Git Bash 终端就足够了。
您可以通过右键单击打开的目录并单击 'Git Bash Here' 来执行此操作。
您的工作区有此设置:
//终端在Windows上使用的shell的路径。使用 Windows 附带的 shells(cmd、PowerShell 或 Ubuntu 上的 Bash)时,首选 C:\Windows\sysnative 而不是 C:\Windows\System32使用 64 位版本。
"terminal.integrated.shell.windows": “C:\Windows\sysnative\bash.exe”,
假设您已经安装了它。我在这里找到了这个信息:
已接受的答案未回答原始问题:How to use git-bash in VS Code。
"terminal.integrated.shell.windows": "C:\Git\bin\bash.exe"
只需将 C:\Git 文件夹的路径替换为 git 安装的实际路径。
我发现了关于如何使用 Git Bash 和完整的 Visual Studio 的问题,但我无法找到关于如何使用的任何指导将 Visual Studio 代码提供的内置终端设置为 Git Bash。这可能吗?
我不确定是否可以将内置终端设置为 Git Bash。在项目根目录中打开 Git Bash 终端就足够了。
您可以通过右键单击打开的目录并单击 'Git Bash Here' 来执行此操作。
您的工作区有此设置:
//终端在Windows上使用的shell的路径。使用 Windows 附带的 shells(cmd、PowerShell 或 Ubuntu 上的 Bash)时,首选 C:\Windows\sysnative 而不是 C:\Windows\System32使用 64 位版本。
"terminal.integrated.shell.windows": “C:\Windows\sysnative\bash.exe”,
假设您已经安装了它。我在这里找到了这个信息:
已接受的答案未回答原始问题:How to use git-bash in VS Code。
"terminal.integrated.shell.windows": "C:\Git\bin\bash.exe"
只需将 C:\Git 文件夹的路径替换为 git 安装的实际路径。